Like my bug #339, this seems like a good candidate for hypothesis; checking that load(dump(data)) == data is pretty much the first example in the manual...
In terms of the yaml-test-suite, the relevant test cases are: 2EBW: Allowed characters in keys FBC9: Allowed characters in plain scalars In general, ruamel.yaml should probably pass the load(dump(data)) == data test for all the test cases in the yaml-test-suite.
In terms of the yaml-test-suite, the relevant test cases are: 2EBW "Allowed characters in keys" FBC9 "https://github.com/yaml/yaml-test-suite/blob/master/test/FBC9.tml" In general, ruamel.yaml should probably pass the load(dump(data)) == data test for all the test cases in the yaml-test-suite.
In terms of the yaml-test-suite, the relevant test cases are: 2EBW "Allowed characters in keys" FBC9 "https://github.com/yaml/yaml-test-suite/blob/master/test/FBC9.tml" In general, ruamel.yaml should probably pass the load(dump(data)) == data test for all the test cases in the yaml-test-suite.
In general I would like to be able to round-trip data through YAML, without worrying whether they will be represented correctly; testing with hypothesis is just how I identified the issue. Example values that are problematic as dictionary keys include: - IPv6 localhost: ::1 - smileys: :-) - programming language tokens: := - URL fragments: :8080 Example values that are problematic as dictionary values include: - information annotated as uncertain or unwise: ?? not sure - shell wildcards: ?eadme.txt...
In general I would like to be able to round-trip data through YAML, without worrying whether they will be represented correctly; testing with hypothesis is just how I identified the issue. Example values that are problematic as dictionary keys include: - IPv6 localhost: ::1 - smileys: :-) - programming language tokens: := - URL fragments: :8080 Example values that are problematic as dictionary values include: - information annotated as uncertain or unwise: ?? not sure - shell wildcards: ?eadme.txt...
In general I would like to be able to round-trip data through YAML, without worrying whether they will be represented correctly; testing with hypothesis is just how I identified the issue. Example values that are problematic as dictionary keys include: - IPv6 localhost: ::1 - smileys: :-) - programming language tokens: := - URL fragments: :8080 Example values that are problematic as dictionary values include: - information annotated as uncertain or unwise: ?? not sure - shell wildcards: ?eadme.txt...
Insufficient escaping on dictionary keys and values