Skip to content

Commit b07ebd4

Browse files
committed
chore(test): update unit tests for latest bug fixes
1 parent 6fd05b9 commit b07ebd4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

test/PegtlExecutableTests.cpp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,25 @@ TEST(PegtlExecutableCase, ParserDepthLimitExceeded)
233233

234234
TEST(PegtlExecutableCase, ParseFloatWithFractionalAndExponentialParts)
235235
{
236-
memory_input<> input(R"gql({ field(value: 1.1e1) })gql",
236+
memory_input<> input(R"gql(
237+
query {
238+
combinedField(value: 1.1e1)
239+
onlyFractional(value: 1.1)
240+
onlyExponent(value: 1e1)
241+
})gql",
237242
"ParseFloatWithFractionalAndExponentialParts");
238243

239244
const bool result = parse<executable_document>(input);
240245

246+
ASSERT_TRUE(result) << "we should be able to parse the doc";
247+
}
248+
249+
TEST(PegtlExecutableCase, ParseIgnoreUnicodeBOM)
250+
{
251+
memory_input<> input("query { \xEF\xBB\xBF __typename }",
252+
"ParseIgnoreUnicodeBOM");
253+
254+
const bool result = parse<executable_document>(input);
255+
241256
ASSERT_TRUE(result) << "we should be able to parse the doc";
242257
}

0 commit comments

Comments
 (0)