diff options
author | David Robillard <d@drobilla.net> | 2011-01-25 01:01:48 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-25 01:01:48 +0000 |
commit | eab3301711168ac934c27c9c331a9742ac848b1c (patch) | |
tree | 35573e5cb4e9fbab8abacabbb7f547c7c4a8e843 /tests | |
parent | e03b4041c0e53c041073402687d7a8a018be83d7 (diff) | |
download | serd-eab3301711168ac934c27c9c331a9742ac848b1c.tar.gz serd-eab3301711168ac934c27c9c331a9742ac848b1c.tar.bz2 serd-eab3301711168ac934c27c9c331a9742ac848b1c.zip |
Fix crash when parsing malformed numbers.
Add bad test cases (reach 95% test coverage).
git-svn-id: http://svn.drobilla.net/serd/trunk@59 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bad-lang.ttl | 1 | ||||
-rw-r--r-- | tests/bad-num.ttl | 1 | ||||
-rw-r--r-- | tests/bad-string.ttl | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/tests/bad-lang.ttl b/tests/bad-lang.ttl new file mode 100644 index 00000000..01e04328 --- /dev/null +++ b/tests/bad-lang.ttl @@ -0,0 +1 @@ +<> <http://example.org/pred> "hello"@\bad .
\ No newline at end of file diff --git a/tests/bad-num.ttl b/tests/bad-num.ttl new file mode 100644 index 00000000..7685f0e0 --- /dev/null +++ b/tests/bad-num.ttl @@ -0,0 +1 @@ +<> <http://example.org/pred> .hello .
\ No newline at end of file diff --git a/tests/bad-string.ttl b/tests/bad-string.ttl new file mode 100644 index 00000000..0bdea42c --- /dev/null +++ b/tests/bad-string.ttl @@ -0,0 +1 @@ +<> <http://example.org/pred> "hello
\ No newline at end of file |