From 7c208474322cba424cd9245fe3b44fd7c0325c9d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 5 Feb 2012 21:45:33 +0000 Subject: 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 --- tests/serd_test.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.1