From 4bce0925039b3791779149ec7bec69b5359b3e56 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 24 Dec 2011 20:08:44 +0000 Subject: Improve URI resolution to cover most of the abnormal cases from RFC3986. Improve test coverage of uri.c. git-svn-id: http://svn.drobilla.net/serd/trunk@266 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- tests/test-uri.out | 14 ++++++++++++++ tests/test-uri.ttl | 24 +++++++++++++++++++++++- 2 files changed, 37 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test-uri.out b/tests/test-uri.out index 1517d2e4..8c984f79 100644 --- a/tests/test-uri.out +++ b/tests/test-uri.out @@ -21,6 +21,20 @@ . . . + . + . + . + . + . + . + . + . + . + . + . + . + . + . . . . diff --git a/tests/test-uri.ttl b/tests/test-uri.ttl index 22799360..cbc699ab 100644 --- a/tests/test-uri.ttl +++ b/tests/test-uri.ttl @@ -29,7 +29,29 @@ <../../> owl:sameAs . <../../g> owl:sameAs . +# 5.4.2. Abnormal Examples +<../../../g> owl:sameAs . +<../../../../g> owl:sameAs . + owl:sameAs . + owl:sameAs . + owl:sameAs . +<.g> owl:sameAs . + owl:sameAs . +<..g> owl:sameAs . +<./../g> owl:sameAs . +# Serd only resolves the leading components +#<./g/.> owl:sameAs . +# owl:sameAs . +# owl:sameAs . +# owl:sameAs . +# owl:sameAs . + owl:sameAs . + owl:sameAs . + owl:sameAs . + owl:sameAs . + # Additional tests for Serd + owl:sameAs . owl:sameAs . owl:sameAs . owl:sameAs . @@ -41,4 +63,4 @@ @base . - owl:sameAs . + owl:sameAs . -- cgit v1.2.1