1 ! Copyright (C) 2008 Daniel Ehrenberg.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: strings io.encodings.utf8 io.encodings.utf16
4 io.encodings.string tools.test ;
5 IN: io.encodings.string.tests
7 [ "hello" ] [ "hello" utf8 decode ] unit-test
8 [ "he" ] [ "\0h\0e" utf16be decode ] unit-test
10 [ "hello" ] [ "hello" utf8 encode >string ] unit-test
11 [ "\0h\0e" ] [ "he" utf16be encode >string ] unit-test