colors: actually add the tests this time.

db4
John Benediktsson 2013-04-03 16:14:30 -07:00
parent 5426b75d99
commit c124725a85
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
USING: colors.constants kernel tools.test ;
IN: colors
{ COLOR: blue } [ COLOR: blue COLOR: red 0.0 linear-gradient ] unit-test
{ COLOR: red } [ COLOR: blue COLOR: red 1.0 linear-gradient ] unit-test
{ COLOR: blue } [ { COLOR: blue COLOR: red COLOR: green } 0.0 sample-linear-gradient ] unit-test
{ COLOR: red } [ { COLOR: blue COLOR: red COLOR: green } 0.5 sample-linear-gradient ] unit-test
{ COLOR: green } [ { COLOR: blue COLOR: red COLOR: green } 1.0 sample-linear-gradient ] unit-test
{ t } [
{ COLOR: blue COLOR: red } 0.5 sample-linear-gradient
COLOR: blue COLOR: red 0.5 linear-gradient =
] unit-test