From fe457b5773475aad01c9e4afce3253313d962793 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Tue, 24 Jul 2012 12:03:22 -0700 Subject: [PATCH] io.streams.256color: adding some tests. --- extra/io/streams/256color/256color-tests.factor | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 extra/io/streams/256color/256color-tests.factor diff --git a/extra/io/streams/256color/256color-tests.factor b/extra/io/streams/256color/256color-tests.factor new file mode 100644 index 0000000000..987ee454e2 --- /dev/null +++ b/extra/io/streams/256color/256color-tests.factor @@ -0,0 +1,11 @@ +! Copyright (C) 2012 John Benediktsson +! See http://factorcode.org/license.txt for BSD license + +USING: colors.constants io.streams.256color +io.streams.256color.private tools.test ; + +{ 16 } [ COLOR: black color>256color ] unit-test +{ 196 } [ COLOR: red color>256color ] unit-test +{ 46 } [ COLOR: green color>256color ] unit-test +{ 21 } [ COLOR: blue color>256color ] unit-test +{ 231 } [ COLOR: white color>256color ] unit-test