aboutsummaryrefslogtreecommitdiffstats
path: root/tests/serd_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-05 21:45:33 +0000
committerDavid Robillard <d@drobilla.net>2012-02-05 21:45:33 +0000
commit7c208474322cba424cd9245fe3b44fd7c0325c9d (patch)
tree9161e9da3ac62c1f42e7662ee8b16e1ded5b0b63 /tests/serd_test.c
parent7a847c2d5dc449c416c0fa2ee7a7e05d0a241392 (diff)
downloadserd-7c208474322cba424cd9245fe3b44fd7c0325c9d.tar.gz
serd-7c208474322cba424cd9245fe3b44fd7c0325c9d.tar.bz2
serd-7c208474322cba424cd9245fe3b44fd7c0325c9d.zip
Add Windows path test cases (100% coverage for uri.c).
git-svn-id: http://svn.drobilla.net/serd/trunk@303 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests/serd_test.c')
-rw-r--r--tests/serd_test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index 863d2e95..aa47ade4 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -244,6 +244,14 @@ main()
if (strcmp((const char*)serd_uri_to_path(uri), "/0/1")) {
return failure("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
}
+ uri = (const uint8_t*)"C:\\Windows\\Sucks";
+ if (strcmp((const char*)serd_uri_to_path(uri), "C:\\Windows\\Sucks")) {
+ return failure("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
+ }
+ uri = (const uint8_t*)"C|/Windows/Sucks";
+ if (strcmp((const char*)serd_uri_to_path(uri), "C|/Windows/Sucks")) {
+ return failure("Bad path %s for %s\n", serd_uri_to_path(uri), uri);
+ }
// Test serd_node_equals