]> gitweb.factorcode.org Git - factor.git/blob - basis/ui/pens/caching/caching-tests.factor
factor: Clean up wrong form of specialized-arrays in using lists.
[factor.git] / basis / ui / pens / caching / caching-tests.factor
1 ! Copyright (C) 2009 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors colors.constants kernel tools.test
4 ui.gadgets.labels ui.pens.caching ui.pens.gradient ;
5 IN: ui.pens.caching.tests
6
7 SPECIALIZED-ARRAY: float
8
9 ! compute-pen
10 {
11     { 0 0 }
12     float-array{ 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 }
13     float-array{ 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 }
14 } [
15     "hi" <label> { COLOR: white COLOR: black } <gradient>
16     [ compute-pen ] keep
17     [ last-dim>> ] [ last-vertices>> ] [ last-colors>> ] tri
18 ] unit-test