diff --git a/test/PegtlExecutableTests.cpp b/test/PegtlExecutableTests.cpp index 3a010f73..4dc47120 100644 --- a/test/PegtlExecutableTests.cpp +++ b/test/PegtlExecutableTests.cpp @@ -233,10 +233,25 @@ TEST(PegtlExecutableCase, ParserDepthLimitExceeded) TEST(PegtlExecutableCase, ParseFloatWithFractionalAndExponentialParts) { - memory_input<> input(R"gql({ field(value: 1.1e1) })gql", + memory_input<> input(R"gql( + query { + combinedField(value: 1.1e1) + onlyFractional(value: 1.1) + onlyExponent(value: 1e1) + })gql", "ParseFloatWithFractionalAndExponentialParts"); const bool result = parse(input); + ASSERT_TRUE(result) << "we should be able to parse the doc"; +} + +TEST(PegtlExecutableCase, ParseIgnoreUnicodeBOM) +{ + memory_input<> input("query { \xEF\xBB\xBF __typename }", + "ParseIgnoreUnicodeBOM"); + + const bool result = parse(input); + ASSERT_TRUE(result) << "we should be able to parse the doc"; } \ No newline at end of file