mirror of
https://github.com/serokell/haskell-with-utf8.git
synced 2024-09-17 09:57:44 +03:00
f6bc3fc0ca
* Split out the actual encoding choice logic into a separate Internal module to make it possible to cover it with tests. * Make this function a little more efficient compared to the previous purely pure function. * Keep a completely pure function as a specficiation for ease of reading and for testing by comparing the actualy function to the pure one. * Add tests that check that the pure function makes sense. * Add tests that compare the output of the real function to the output of the pure function on some real handles. * Add tests that check that functions that are supposed to actually modify the encoding of a handle actually do modify it. |
||
---|---|---|
.. | ||
Data/Text | ||
System/IO |