aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-03-01 19:50:23 -0500
committerDavid Robillard <d@drobilla.net>2023-04-02 20:04:00 -0400
commitb7ed626f5396e70fb9fff94e7edce0b54fde1ca5 (patch)
tree9bc360de8ec906a598e7781438c8983251eaff8c /test
parent2eb037b3f1abebbac697c7d804f1e6339c907aaa (diff)
downloadserd-b7ed626f5396e70fb9fff94e7edce0b54fde1ca5.tar.gz
serd-b7ed626f5396e70fb9fff94e7edce0b54fde1ca5.tar.bz2
serd-b7ed626f5396e70fb9fff94e7edce0b54fde1ca5.zip
Improve TriG pretty-printing and remove trailing newlines
Diffstat (limited to 'test')
-rw-r--r--test/test_reader_writer.c4
-rw-r--r--test/test_writer.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c
index 5a0509d3..32367bf7 100644
--- a/test/test_reader_writer.c
+++ b/test/test_reader_writer.c
@@ -1,4 +1,4 @@
-// Copyright 2011-2020 David Robillard <d@drobilla.net>
+// Copyright 2011-2023 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
#undef NDEBUG
@@ -363,7 +363,7 @@ test_writer(const char* const path)
serd_writer_free(writer);
out = serd_chunk_sink_finish(&chunk);
- assert(!strcmp((const char*)out, "<>\n\t<http://example.org/pred> .\n\n"));
+ assert(!strcmp((const char*)out, "<>\n\t<http://example.org/pred> .\n"));
serd_free(out);
serd_env_free(env);
diff --git a/test/test_writer.c b/test/test_writer.c
index b740eafb..c1a5f468 100644
--- a/test/test_writer.c
+++ b/test/test_writer.c
@@ -1,4 +1,4 @@
-// Copyright 2011-2021 David Robillard <d@drobilla.net>
+// Copyright 2011-2023 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
#undef NDEBUG
@@ -35,7 +35,7 @@ test_write_long_literal(void)
static const char* const expected =
"<http://example.org/s>\n"
- "\t<http://example.org/p> \"\"\"hello \"\"\\\"world\"\"\\\"!\"\"\" .\n\n";
+ "\t<http://example.org/p> \"\"\"hello \"\"\\\"world\"\"\\\"!\"\"\" .\n";
assert(!strcmp((char*)out, expected));
serd_free(out);