]> gitweb.factorcode.org Git - factor.git/blob - core/io/encodings/string/string-tests.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / core / io / encodings / string / string-tests.factor
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
6
7 [ "hello" ] [ "hello" utf8 decode ] unit-test
8 [ "he" ] [ "\0h\0e" utf16be decode ] unit-test
9
10 [ "hello" ] [ "hello" utf8 encode >string ] unit-test
11 [ "\0h\0e" ] [ "he" utf16be encode >string ] unit-test