kislyuk / yq

Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
https://kislyuk.github.io/yq/
Apache License 2.0
2.53k stars 81 forks source link

Fix #152 #163

Closed pbsds closed 1 year ago

pbsds commented 1 year ago

Not sure how to test it though, perhaps something like this?

self.assertEqual(self.run_yq("0123456789", ["."]), "\"0123456789\"\n")

odd behaviour on pyyaml:

>>> import yaml
>>> yaml.safe_load("0123")
83
>>> yaml.safe_load("01239")
'01239'
pbsds commented 1 year ago

didnt work