diff options
author | David Robillard <d@drobilla.net> | 2020-08-12 18:24:19 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | 1f09497ae009daade56c450e73bf6425b27cea24 (patch) | |
tree | 1781755ae05f5f6aa7d31c74d93a2d92a3ff08bc /test | |
parent | decdceff8698471013e65cbf84ddd3f02eceebe5 (diff) | |
download | serd-1f09497ae009daade56c450e73bf6425b27cea24.tar.gz serd-1f09497ae009daade56c450e73bf6425b27cea24.tar.bz2 serd-1f09497ae009daade56c450e73bf6425b27cea24.zip |
Remove "get" from accessor names
Diffstat (limited to 'test')
-rw-r--r-- | test/test_env.c | 6 | ||||
-rw-r--r-- | test/test_reader_writer.c | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/test/test_env.c b/test/test_env.c index 2d9dd702..2db28f2d 100644 --- a/test/test_env.c +++ b/test/test_env.c @@ -29,7 +29,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; @@ -76,9 +76,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 d6752d4b..4acfb976 100644 --- a/test/test_reader_writer.c +++ b/test/test_reader_writer.c @@ -186,7 +186,7 @@ test_read_nquads_chunks(const char* const path) test_end_sink); 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); @@ -266,7 +266,7 @@ test_read_turtle_chunks(const char* const path) test_end_sink); 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); @@ -348,7 +348,7 @@ test_read_string(void) test_end_sink); 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 = @@ -452,7 +452,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, ""); @@ -566,7 +566,7 @@ test_reader(const char* path) test_end_sink); assert(reader); - assert(serd_reader_get_handle(reader) == rt); + assert(serd_reader_handle(reader) == rt); assert(serd_reader_read_chunk(reader) == SERD_FAILURE); |