
tis 2002-09-03 klockan 01.06 skrev Sven Moritz Hallberg:
With the ICFP contest finally over, I have just committed mine to CVS (thanks for setting it up Ashley!). I hope it is of reasonable quality, I've not performance-tested it. I'm looking forward to all feed-back.
My quickCheck tests found errors in three and four byte encodings: *Text.Encoding.TestUTF8> encodeOne (toEnum 51177) [236,159,140] *Text.Encoding.TestUTF8> decodeOne [236,159,140] (Right '\51148',3,[]) *Text.Encoding.TestUTF8> encodeOne (toEnum 845466) [243,206,154,154] *Text.Encoding.TestUTF8> decodeOne [243,206,154,154] (Left (InvalidLaterByte 1),1,[206,154,154]) 51177 should encode into [236,159,169] 845466 should encode into [243,142,154,154] I see you use hugs, you could consider using ghci, it's really nice and work exactly like hugs. Regards, Martin -- Martin Norbäck d95mback@dtek.chalmers.se Kapplandsgatan 40 +46 (0)708 26 33 60 S-414 78 GÖTEBORG http://www.dtek.chalmers.se/~d95mback/ SWEDEN OpenPGP ID: 3FA8580B