Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more numeric tag tests needed #23

Open
rogpeppe opened this issue Jan 9, 2018 · 2 comments
Open

more numeric tag tests needed #23

rogpeppe opened this issue Jan 9, 2018 · 2 comments

Comments

@rogpeppe
Copy link
Contributor

rogpeppe commented Jan 9, 2018

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
Copy link
Contributor Author

rogpeppe commented Jan 9, 2018

Another test:

! 9

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

@perlpunk
Copy link
Member

perlpunk commented Oct 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants