summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp6/tests/parser_unittest.cc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2016-12-10 11:52:02 +0100
committerFrancis Dupont <fdupont@isc.org>2016-12-10 11:52:02 +0100
commitaef276b92fabb9c2e762e99706d0aa6d7b6966bb (patch)
treea641890ece4958f628be6ed75e664df8e1657743 /src/bin/dhcp6/tests/parser_unittest.cc
parentMerge branch 'trac5036' of ssh://git.kea.isc.org/git/kea into trac5036 (diff)
downloadkea-aef276b92fabb9c2e762e99706d0aa6d7b6966bb.tar.xz
kea-aef276b92fabb9c2e762e99706d0aa6d7b6966bb.zip
[5036] Optional exception display and case sensitive JSON unit tests
Diffstat (limited to '')
-rw-r--r--src/bin/dhcp6/tests/parser_unittest.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/dhcp6/tests/parser_unittest.cc b/src/bin/dhcp6/tests/parser_unittest.cc
index f1919cd25a..7d9abb8b8d 100644
--- a/src/bin/dhcp6/tests/parser_unittest.cc
+++ b/src/bin/dhcp6/tests/parser_unittest.cc
@@ -326,6 +326,14 @@ TEST(ParserTest, errors) {
Parser6Context::PARSER_JSON,
"Can't open include file /foo/bar");
+ // case sensitivity
+ testError("{ \"foo\": True }",
+ Parser6Context::PARSER_JSON,
+ "<string>:1.10: Invalid character: T");
+ testError("{ \"foo\": NULL }",
+ Parser6Context::PARSER_JSON,
+ "<string>:1.10: Invalid character: N");
+
// numbers
testError("123",
Parser6Context::PARSER_DHCP6,