yaml / yaml-test-suite

Comprehensive, language independent Test Suite for YAML
MIT License
181 stars 62 forks source link

more numeric tag tests needed #23

Open rogpeppe opened 6 years ago

rogpeppe commented 6 years ago

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 commented 6 years ago

Another test:

! 9

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

perlpunk commented 2 years ago

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