Function in Printer.hs was changed in order to allow escaping unicode characters. Firstly escaping unicode characters are performed before calling function show which will escape others like \n.
I implemented tests but they are not functional. The reason is that because currently char č is parsed into \U0000010d and it can only be unparsed into \U0000010d. That is the reason why those tests will fail (starting char is not equal to end). I am still wondering should I add that tests with different printing without \u or \U or this is good enough.
Issue #334
File changed
src/Toml/Type/Printer.hs
test/Test/Toml/Gen.hs
Function in
Printer.hs
was changed in order to allow escaping unicode characters. Firstly escaping unicode characters are performed before calling functionshow
which will escape others like\n
. I implemented tests but they are not functional. The reason is that because currently charč
is parsed into\U0000010d
and it can only be unparsed into\U0000010d
. That is the reason why those tests will fail (starting char is not equal to end). I am still wondering should I add that tests with different printing without \u or \U or this is good enough.