Update test-grammar-integration.cpp
This commit is contained in:
parent
4c1c29361e
commit
ac2a8f8930
1 changed files with 27 additions and 0 deletions
|
@ -148,6 +148,33 @@ static void test_simple_grammar() {
|
||||||
"-10000",
|
"-10000",
|
||||||
"-100000000000000000000000000000000",
|
"-100000000000000000000000000000000",
|
||||||
"100000000000000000000000000000000",
|
"100000000000000000000000000000000",
|
||||||
|
"00",
|
||||||
|
"01",
|
||||||
|
"-0",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
test_schema(
|
||||||
|
"simple min 456",
|
||||||
|
R"""({
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 456
|
||||||
|
})""",
|
||||||
|
// Passing strings
|
||||||
|
{
|
||||||
|
"456",
|
||||||
|
"4560",
|
||||||
|
"457",
|
||||||
|
"460",
|
||||||
|
"500",
|
||||||
|
},
|
||||||
|
// Failing strings
|
||||||
|
{
|
||||||
|
"455",
|
||||||
|
"356",
|
||||||
|
"50",
|
||||||
|
"050",
|
||||||
|
"-1",
|
||||||
|
"-456",
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
test_schema(
|
test_schema(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue