1 USING: colors colors.contrast kernel tools.test ;
3 { 0.0 } [ COLOR: black relative-luminance ] unit-test
4 { 1.0 } [ COLOR: white relative-luminance ] unit-test
6 { 1.0 } [ COLOR: blue dup contrast-ratio ] unit-test
7 { 21.0 } [ COLOR: black COLOR: white contrast-ratio ] unit-test