2017-10-09 13:01:41 -04:00
|
|
|
USING: alien.c-types literals specialized-arrays tools.test
|
2017-01-29 23:43:19 -05:00
|
|
|
ui.pixel-formats ;
|
2017-10-09 13:01:41 -04:00
|
|
|
SPECIALIZED-ARRAY: int
|
2017-01-29 23:43:19 -05:00
|
|
|
IN: ui.pixel-formats.tests
|
|
|
|
|
|
|
|
CONSTANT: attrib-table {
|
|
|
|
{ windowed { 99 } }
|
|
|
|
{ double-buffered { 7 } }
|
2017-10-09 13:01:41 -04:00
|
|
|
{ samples { 100001 } }
|
2017-01-29 23:43:19 -05:00
|
|
|
}
|
|
|
|
|
2017-10-09 13:01:41 -04:00
|
|
|
SYMBOL: garbageword
|
|
|
|
CONSTANT: garbageint 234
|
|
|
|
|
2017-01-29 23:43:19 -05:00
|
|
|
! pixel-format-attributes>int-array
|
2017-10-09 13:01:41 -04:00
|
|
|
! it should ignore garbage, even the color-bits because it's not
|
|
|
|
! in the table
|
|
|
|
{ int-array{ 9 2 99 7 100001 2 0 } } [
|
|
|
|
{
|
|
|
|
windowed "garbage" $ garbageint double-buffered
|
|
|
|
garbageword T{ samples f 2 } T{ color-bits f 24 }
|
|
|
|
} { 9 2 } attrib-table
|
2017-01-29 23:43:19 -05:00
|
|
|
pixel-format-attributes>int-array
|
|
|
|
] unit-test
|