]> gitweb.factorcode.org Git - factor.git/blob - core/io/encodings/ascii/ascii-tests.factor
core: Trim using lists from -tests and clean up a few irregularities.
[factor.git] / core / io / encodings / ascii / ascii-tests.factor
1 USING: arrays io.encodings.ascii io.encodings.string strings
2 tools.test ;
3
4 { B{ CHAR: f CHAR: o CHAR: o } } [ "foo" ascii encode ] unit-test
5 [ { 128 } >string ascii encode ] must-fail
6 { B{ 127 } } [ { 127 } >string ascii encode ] unit-test
7
8 { "bar" } [ "bar" ascii decode ] unit-test
9 { { CHAR: b 0xfffd CHAR: r } } [ B{ CHAR: b 233 CHAR: r } ascii decode >array ] unit-test