diff --git a/implementations/python/tests/samples.bin b/implementations/python/tests/samples.bin new file mode 100644 index 0000000..0aa76bb Binary files /dev/null and b/implementations/python/tests/samples.bin differ diff --git a/implementations/python/tests/samples.pr b/implementations/python/tests/samples.pr new file mode 100644 index 0000000..c12396c --- /dev/null +++ b/implementations/python/tests/samples.pr @@ -0,0 +1,319 @@ +@ +@ + "In each test, let value = strip(annotatedValue),", + " forward = value,", + " back = value," + "except where test-case-specific values of `forward` and/or `back`", + "are provided by the executing harness, and check the following" + "numbered expectations according to the table above:" + + "Implementations may vary in their treatment of the difference between expectations" + "13/14 and 16/17, depending on how they wish to treat end-of-stream conditions." +]> + + annotation2: + annotation3: + annotation4: + annotation5: > + annotation6: > + annotation7: + ;Stop reading symbols at @ -- this test has three separate annotations + + bytes2: + bytes2a: + bytes3: + bytes4: + bytes5: + bytes6: @"Bytes must be 2-digits entire" + bytes7: + bytes8: + bytes9: + bytes10: + bytes11: + bytes12: @"Bytes syntax only supports \\x, not \\u" + bytes13: + + dict0: + dict1: + dict2: @"Missing close brace" + dict2a: @"Missing close brace" + dict3: @"Duplicate key" + dict4: @"Unexpected close brace" + dict5: @"Missing value" + double1: + double2: + float1: + int-257: + int-256: + int-255: + int-254: + int-129: + int-128: + int-127: + int-4: + int-3: + int-2: + int-1: + int0: + int1: + int12: + int13: + int127: + int128: + int255: + int256: + int32767: + int32768: + int65535: + int65536: + int131072: + int2500000000: + list0: + list4: + list4a: + list5: + list6: + list7: + list8: @"Missing close bracket" + list9: @"Unexpected close bracket" + list10: @"Missing end byte" + noinput0: @"No input at all" + embed0: + embed1: + embed2: + record1: >> + record2: , >>>> + record3: "Dr">> + record4: > + record5: > + record6: > + record7: > + record8: 3 4>> + record9: @"Missing record label" "> + record10: @"Missing close-angle-bracket" + record11: @"Unexpected close-angle-bracket" "> + set0: + set1: + set2: @"Missing close brace" + set2a: @"Missing close brace" + set3: @"Duplicate value" + string0: + string3: + string4: + string5: + symbol0: + symbol2: + tag0: @"Unexpected end tag" + tag1: @"Invalid tag" + tag2: @"Invalid tag" + whitespace0: @"Leading spaces have to eventually yield something" + whitespace1: @"No input at all" + value1: + value2: + value3: + value4: + value5: + value6: + + longlist14: + longlist15: + longlist100: + + longlist200: + + + rfc8259-example1: + + rfc8259-example2: + +} +>