Escapes replacement text when exporting to yaml and unescapes when importing from yaml.
Just so I have asked ;-)
I think it would be worthwhile to test other characters as well.
Yes, assert stops the test case. After the assert you can safely assume they are identical.
I assume this kind of test would have been green even without your change? Or would it fail?
- Extend tests
You need to escape the escape character to avoid ambiguity when unescaping later
Say the code has the raw string which is \ followed by n. it would be escaped as \n.
I have added all the c++ escape characters apart from \' as that is handled in the yaml string parser anyway and \" as that seems to be ignore anyway
Yes this should've passed before however the issue was one more of readability. Things like the old double newline just look confusing whereas every programmer knows that '\n' is code for newline.