From b7ed626f5396e70fb9fff94e7edce0b54fde1ca5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Mar 2023 19:50:23 -0500 Subject: Improve TriG pretty-printing and remove trailing newlines --- test/test_reader_writer.c | 4 ++-- test/test_writer.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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 +// Copyright 2011-2023 David Robillard // 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 .\n\n")); + assert(!strcmp((const char*)out, "<>\n\t .\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 +// Copyright 2011-2023 David Robillard // SPDX-License-Identifier: ISC #undef NDEBUG @@ -35,7 +35,7 @@ test_write_long_literal(void) static const char* const expected = "\n" - "\t \"\"\"hello \"\"\\\"world\"\"\\\"!\"\"\" .\n\n"; + "\t \"\"\"hello \"\"\\\"world\"\"\\\"!\"\"\" .\n"; assert(!strcmp((char*)out, expected)); serd_free(out); -- cgit v1.2.1