curses.tests: only run the color test if term is color capable
parent
485a45a719
commit
26304112d6
|
@ -1,7 +1,7 @@
|
||||||
! Copyright (C) 2009 Doug Coleman.
|
! Copyright (C) 2009 Doug Coleman.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors calendar curses kernel threads tools.test
|
USING: calendar curses curses.ffi kernel random sequences threads
|
||||||
strings sequences random ;
|
tools.test ;
|
||||||
IN: curses.tests
|
IN: curses.tests
|
||||||
|
|
||||||
: hello-curses ( -- )
|
: hello-curses ( -- )
|
||||||
|
@ -24,6 +24,8 @@ IN: curses.tests
|
||||||
] with-curses ;
|
] with-curses ;
|
||||||
|
|
||||||
curses-ok? [
|
curses-ok? [
|
||||||
[ ] [ hello-curses ] unit-test
|
{ } [ hello-curses ] unit-test
|
||||||
[ ] [ hello-curses-color ] unit-test
|
has_colors [
|
||||||
|
{ } [ hello-curses-color ] unit-test
|
||||||
|
] when
|
||||||
] when
|
] when
|
||||||
|
|
Loading…
Reference in New Issue