aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-12 18:24:19 +0200
committerDavid Robillard <d@drobilla.net>2022-01-13 15:33:54 -0500
commit5126deddc9ef239d1f65e21327cb440fe7a67031 (patch)
tree8116d144130f3c29a6b532f174cf35b1632ae28d /test
parentda8e12fcbccf4558d4d524d7a6f659ea2ffc0ea2 (diff)
downloadserd-5126deddc9ef239d1f65e21327cb440fe7a67031.tar.gz
serd-5126deddc9ef239d1f65e21327cb440fe7a67031.tar.bz2
serd-5126deddc9ef239d1f65e21327cb440fe7a67031.zip
Remove "get" from accessor names
Diffstat (limited to 'test')
-rw-r--r--test/test_env.c6
-rw-r--r--test/test_reader_writer.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/test/test_env.c b/test/test_env.c
index 0ca17b79..f0dd4d47 100644
--- a/test/test_env.c
+++ b/test/test_env.c
@@ -42,7 +42,7 @@ test_env(void)
assert(!serd_env_set_base_uri(env, NULL));
assert(serd_env_set_base_uri(env, &SERD_NODE_NULL));
- assert(serd_node_equals(serd_env_get_base_uri(env, NULL), &SERD_NODE_NULL));
+ assert(serd_node_equals(serd_env_base_uri(env, NULL), &SERD_NODE_NULL));
SerdStringView prefix;
SerdStringView suffix;
@@ -87,9 +87,9 @@ test_env(void)
assert(!serd_env_qualify(env, &shorter_uri, &prefix_name, &suffix));
assert(!serd_env_set_base_uri(env, &u));
- assert(serd_node_equals(serd_env_get_base_uri(env, NULL), &u));
+ assert(serd_node_equals(serd_env_base_uri(env, NULL), &u));
assert(!serd_env_set_base_uri(env, NULL));
- assert(!serd_env_get_base_uri(env, NULL)->buf);
+ assert(!serd_env_base_uri(env, NULL)->buf);
serd_env_free(env);
}
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c
index 287a2bfc..3a1a103d 100644
--- a/test/test_reader_writer.c
+++ b/test/test_reader_writer.c
@@ -107,7 +107,7 @@ test_read_chunks(void)
serd_reader_new(SERD_TURTLE, rt, free, NULL, NULL, test_sink, NULL);
assert(reader);
- assert(serd_reader_get_handle(reader) == rt);
+ assert(serd_reader_handle(reader) == rt);
assert(f);
SerdStatus st = serd_reader_start_stream(reader, f, NULL, false);
@@ -163,7 +163,7 @@ test_read_string(void)
serd_reader_new(SERD_TURTLE, rt, free, NULL, NULL, test_sink, NULL);
assert(reader);
- assert(serd_reader_get_handle(reader) == rt);
+ assert(serd_reader_handle(reader) == rt);
// Test reading a string that ends exactly at the end of input (no newline)
const SerdStatus st =
@@ -196,7 +196,7 @@ test_writer(const char* const path)
assert(serd_writer_set_base_uri(writer, &lit));
assert(serd_writer_set_prefix(writer, &lit, &lit));
assert(serd_writer_end_anon(writer, NULL));
- assert(serd_writer_get_env(writer) == env);
+ assert(serd_writer_env(writer) == env);
uint8_t buf[] = {0xEF, 0xBF, 0xBD, 0};
SerdNode s = serd_node_from_string(SERD_URI, "");
@@ -298,7 +298,7 @@ test_reader(const char* path)
SerdReader* reader =
serd_reader_new(SERD_TURTLE, rt, free, NULL, NULL, test_sink, NULL);
assert(reader);
- assert(serd_reader_get_handle(reader) == rt);
+ assert(serd_reader_handle(reader) == rt);
SerdNode g = serd_node_from_string(SERD_URI, "http://example.org/");
serd_reader_set_default_graph(reader, &g);