diff options
author | David Robillard <d@drobilla.net> | 2012-02-05 21:45:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-05 21:45:33 +0000 |
commit | 7c208474322cba424cd9245fe3b44fd7c0325c9d (patch) | |
tree | 9161e9da3ac62c1f42e7662ee8b16e1ded5b0b63 | |
parent | 7a847c2d5dc449c416c0fa2ee7a7e05d0a241392 (diff) | |
download | serd-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
-rw-r--r-- | tests/serd_test.c | 8 |
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 |