yaml-test-suite icon indicating copy to clipboard operation
yaml-test-suite copied to clipboard

more numeric tag tests needed

Open rogpeppe opened this issue 7 years ago • 2 comments

Possible additional tests:

Numbers with different bases (0x, 0b, 0o)
Numbers which might be interpreted wrongly (e.g. 0755)
Numbers with inappropriate tags (e.g. `!!float 0xff`)

rogpeppe avatar Jan 09 '18 12:01 rogpeppe

Another test:

! 9

(expected json is "9" but several YAML parsers don't interpret the ! correctly and produce 9 instead)

rogpeppe avatar Jan 09 '18 12:01 rogpeppe

You can find such tests here: https://github.com/perlpunk/yaml-test-schema

perlpunk avatar Oct 08 '21 22:10 perlpunk