aboutsummaryrefslogtreecommitdiffstats
path: root/test/extra/good/test-ttl-syntax-all-rules.ttl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-02-09 11:01:37 -0500
committerDavid Robillard <d@drobilla.net>2024-03-08 17:20:00 -0500
commitfb30a102ee544acf21d387fc99a31111262b6209 (patch)
treef73b5524bd2471a0079f81cf8244aae6efae4db9 /test/extra/good/test-ttl-syntax-all-rules.ttl
parent66adb6e1cea6e1231723a41c60f0b9e650e20448 (diff)
downloadserd-fb30a102ee544acf21d387fc99a31111262b6209.tar.gz
serd-fb30a102ee544acf21d387fc99a31111262b6209.tar.bz2
serd-fb30a102ee544acf21d387fc99a31111262b6209.zip
Add tests with as many rules as possible in a single document
Diffstat (limited to 'test/extra/good/test-ttl-syntax-all-rules.ttl')
-rw-r--r--test/extra/good/test-ttl-syntax-all-rules.ttl26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/extra/good/test-ttl-syntax-all-rules.ttl b/test/extra/good/test-ttl-syntax-all-rules.ttl
new file mode 100644
index 00000000..ead2e8a8
--- /dev/null
+++ b/test/extra/good/test-ttl-syntax-all-rules.ttl
@@ -0,0 +1,26 @@
+# Cover as many grammar rules/situations as possible in a small document
+@base <> .
+@prefix eg: <http://example.org> .
+<example:s> <example:p> "ob\t\b\n\r\f\\\"\'\u0025\U00015678ject" .
+ <example:s> <example:p> """long
+ ""string""\t\b\n\r\f\'\u0025\U00015678""" .
+eg:s eg:p "€߿ࠀ࿿က쿿퀀퟿�𐀀𿿽񀀀󿿽􀀀􏿽" .
+ eg:sub%25ject eg:pr\~d "o"^^eg:T .
+eg:sub%25ject eg:pr\~d "o"@en .
+_:e.u.s eg:p "o"@en-gb .
+_:e.u.s eg:p _:o.
+_:e.u.s eg:p‿r⁀d 2.
+_:e.u.s eg:prèd 3 .
+_:e.u.s eg:pͯ 4.5.
+eg:s eg:p 0 , .1 , 2.3 , 4E5, 6e07 .
+eg:s eg:p .7e8 , .9E0 , 1.e2 , 3.E4 .
+eg:s eg:p .2E3 , .4e5 , 6.7E8 , 9.
+ [ ] eg:p 0.e1, 2.E3.
+[] eg:p (1 -2.3 4e5 +6.E-7 8.e+9 .1 -.2 +.3) .
+eg:s eg:p [] .
+[
+ eg:p1 eg:o1 ;
+ eg:p2 _:o2 ;
+ eg:p3 "o3" ;
+
+ ] a eg:S .