aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-num.out
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-25 00:08:48 +0000
committerDavid Robillard <d@drobilla.net>2011-01-25 00:08:48 +0000
commit702208e54132477eeff922ebf641ba56540b9456 (patch)
tree7f553f8e8b848b654017d3db66b0fd6c0dbc749c /tests/test-num.out
parent634b5459db03b4cd00539ec45b6a3b23f29481de (diff)
downloadserd-702208e54132477eeff922ebf641ba56540b9456.tar.gz
serd-702208e54132477eeff922ebf641ba56540b9456.tar.bz2
serd-702208e54132477eeff922ebf641ba56540b9456.zip
Fix parsing of numbers that begin with a `.'.
Add number parsing test case. git-svn-id: http://svn.drobilla.net/serd/trunk@56 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests/test-num.out')
-rw-r--r--tests/test-num.out6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-num.out b/tests/test-num.out
new file mode 100644
index 00000000..447f11df
--- /dev/null
+++ b/tests/test-num.out
@@ -0,0 +1,6 @@
+<http://example.org/eg#thing> <http://example.org/eg#num> "0.1"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/eg#thing> <http://example.org/eg#num> "+0.2"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/eg#thing> <http://example.org/eg#num> "-0.3"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/eg#thing> <http://example.org/eg#num> ".4"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/eg#thing> <http://example.org/eg#num> "+.5"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/eg#thing> <http://example.org/eg#num> "-.6"^^<http://www.w3.org/2001/XMLSchema#decimal> .