aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-num.nt
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-24 04:32:08 +0000
committerDavid Robillard <d@drobilla.net>2013-02-24 04:32:08 +0000
commitd3e093b153ec1cfb6ba82e4b0144cf59880326f3 (patch)
tree8aa7d2d436bf91b330b38f2c22e1b817f1e1dccd /tests/test-num.nt
parent541c97ad49dd8bb33297a14f422299328b7f4131 (diff)
downloadserd-d3e093b153ec1cfb6ba82e4b0144cf59880326f3.tar.gz
serd-d3e093b153ec1cfb6ba82e4b0144cf59880326f3.tar.bz2
serd-d3e093b153ec1cfb6ba82e4b0144cf59880326f3.zip
Restructure test suite to match new Turtle test suite.
git-svn-id: http://svn.drobilla.net/serd/trunk@412 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests/test-num.nt')
-rw-r--r--tests/test-num.nt10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test-num.nt b/tests/test-num.nt
new file mode 100644
index 00000000..54263d46
--- /dev/null
+++ b/tests/test-num.nt
@@ -0,0 +1,10 @@
+<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> .
+<http://example.org/eg#thing> <http://example.org/eg#num> "1.58490e-05"^^<http://www.w3.org/2001/XMLSchema#double> .
+<http://example.org/eg#thing> <http://example.org/eg#num> "1.58490e+05"^^<http://www.w3.org/2001/XMLSchema#double> .
+<http://example.org/eg#thing> <http://example.org/eg#num> "1.58490e05"^^<http://www.w3.org/2001/XMLSchema#double> .
+<http://example.org/eg#thing> <http://example.org/eg#num> "1.58490E05"^^<http://www.w3.org/2001/XMLSchema#double> .