From eab3301711168ac934c27c9c331a9742ac848b1c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 25 Jan 2011 01:01:48 +0000 Subject: 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 --- tests/bad-lang.ttl | 1 + tests/bad-num.ttl | 1 + tests/bad-string.ttl | 1 + 3 files changed, 3 insertions(+) create mode 100644 tests/bad-lang.ttl create mode 100644 tests/bad-num.ttl create mode 100644 tests/bad-string.ttl (limited to 'tests') 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 @@ +<> "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 @@ +<> .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 @@ +<> "hello \ No newline at end of file -- cgit v1.2.1