expressions_test: add empty string round-trip check

This commit is contained in:
Mickey Rose 2016-03-15 00:26:21 +01:00
parent 4a2ececea4
commit 344e62e7db

View file

@ -88,6 +88,7 @@ TEST_CASE("expressions")
// integer // integer
TRY_CHECK(parse_and_dump("123") == "123"); TRY_CHECK(parse_and_dump("123") == "123");
// unicode // unicode
TRY_CHECK(parse_and_dump("''") == "''");
TRY_CHECK(parse_and_dump("'single-quoted string'") == "'single-quoted string'"); TRY_CHECK(parse_and_dump("'single-quoted string'") == "'single-quoted string'");
TRY_CHECK(parse_and_dump("\"double-quoted string\"") == "'double-quoted string'"); TRY_CHECK(parse_and_dump("\"double-quoted string\"") == "'double-quoted string'");
TRY_CHECK(parse_and_dump("'escaped \\' apostrophe'") == "'escaped \\' apostrophe'"); TRY_CHECK(parse_and_dump("'escaped \\' apostrophe'") == "'escaped \\' apostrophe'");