tests: prefer ${ } instead of 1array

db4
Doug Coleman 2015-07-02 14:56:14 -07:00
parent 59f3b1ea57
commit 40892c0302
5 changed files with 36 additions and 39 deletions

View File

@ -1,9 +1,9 @@
USING: accessors arrays assocs combinators.extras compiler.cfg USING: accessors assocs combinators.extras compiler.cfg
compiler.cfg.instructions compiler.cfg.linear-scan.allocation compiler.cfg.instructions compiler.cfg.linear-scan.allocation
compiler.cfg.linear-scan.allocation.state compiler.cfg.linear-scan.allocation.state
compiler.cfg.linear-scan.live-intervals compiler.cfg.utilities cpu.architecture compiler.cfg.linear-scan.live-intervals compiler.cfg.utilities
cpu.x86.assembler.operands heaps kernel layouts namespaces sequences system cpu.architecture cpu.x86.assembler.operands heaps kernel layouts
tools.test ; literals namespaces sequences system tools.test ;
IN: compiler.cfg.linear-scan.allocation.state.tests IN: compiler.cfg.linear-scan.allocation.state.tests
! active-intervals-for ! active-intervals-for
@ -68,18 +68,19 @@ cpu x86.64? [
] unit-test ] unit-test
! assign-spill-slot ! assign-spill-slot
cpu x86.32? ${
H{ cpu x86.32?
H{
{ { 3 4 } T{ spill-slot { n 32 } } } { { 3 4 } T{ spill-slot { n 32 } } }
{ { 1234 4 } T{ spill-slot } } { { 1234 4 } T{ spill-slot } }
{ { 45 16 } T{ spill-slot { n 16 } } } { { 45 16 } T{ spill-slot { n 16 } } }
} }
H{ H{
{ { 3 8 } T{ spill-slot { n 32 } } } { { 3 8 } T{ spill-slot { n 32 } } }
{ { 1234 8 } T{ spill-slot } } { { 1234 8 } T{ spill-slot } }
{ { 45 16 } T{ spill-slot { n 16 } } } { { 45 16 } T{ spill-slot { n 16 } } }
} ? 1array } ?
[ } [
H{ } clone spill-slots set H{ } clone spill-slots set
f f <basic-block> <cfg> cfg set f f <basic-block> <cfg> cfg set
{ 1234 45 3 } { int-rep double-2-rep tagged-rep } { 1234 45 3 } { int-rep double-2-rep tagged-rep }

View File

@ -1,11 +1,10 @@
USING: compiler.cfg.value-numbering compiler.cfg.instructions USING: accessors alien assocs combinators.short-circuit
compiler.cfg.registers compiler.cfg.debugger compiler.cfg.comparisons compiler.cfg compiler.cfg.comparisons compiler.cfg.dce
cpu.architecture tools.test kernel math combinators.short-circuit compiler.cfg.debugger compiler.cfg.instructions
accessors sequences compiler.cfg.predecessors locals compiler.cfg.dce compiler.cfg.registers compiler.cfg.representations
compiler.cfg.ssa.destruction compiler.cfg.loop-detection compiler.cfg.ssa.destruction compiler.cfg.utilities
compiler.cfg.representations compiler.cfg compiler.cfg.utilities assocs vectors compiler.cfg.value-numbering cpu.architecture kernel layouts
arrays layouts literals namespaces alien compiler.cfg.value-numbering.simd literals math namespaces sequences system tools.test ;
system ;
QUALIFIED-WITH: alien.c-types c QUALIFIED-WITH: alien.c-types c
IN: compiler.cfg.value-numbering.tests IN: compiler.cfg.value-numbering.tests
@ -3039,8 +3038,8 @@ cpu x86?
] unit-test ] unit-test
! Scale fusion on ##load/store-memory ! Scale fusion on ##load/store-memory
cpu x86? ${
[ cpu x86?
V{ V{
T{ ##peek f 0 D 0 } T{ ##peek f 0 D 0 }
T{ ##peek f 1 D 1 } T{ ##peek f 1 D 1 }
@ -3049,8 +3048,6 @@ cpu x86?
T{ ##shl-imm f 4 3 2 } T{ ##shl-imm f 4 3 2 }
T{ ##load-memory f 5 2 3 2 0 int-rep c:uchar } T{ ##load-memory f 5 2 3 2 0 int-rep c:uchar }
} }
]
[
V{ V{
T{ ##peek f 0 D 0 } T{ ##peek f 0 D 0 }
T{ ##peek f 1 D 1 } T{ ##peek f 1 D 1 }
@ -3058,9 +3055,8 @@ cpu x86?
T{ ##tagged>integer f 3 1 } T{ ##tagged>integer f 3 1 }
T{ ##shl-imm f 4 3 2 } T{ ##shl-imm f 4 3 2 }
T{ ##load-memory f 5 2 4 0 0 int-rep c:uchar } T{ ##load-memory f 5 2 4 0 0 int-rep c:uchar }
} } ?
] ? } [
[
V{ V{
T{ ##peek f 0 D 0 } T{ ##peek f 0 D 0 }
T{ ##peek f 1 D 1 } T{ ##peek f 1 D 1 }

View File

@ -1,4 +1,4 @@
USING: arrays tools.test globs io.pathnames sequences ; USING: globs io.pathnames literals sequences tools.test ;
IN: globs.tests IN: globs.tests
[ f ] [ "abd" "fdf" glob-matches? ] unit-test [ f ] [ "abd" "fdf" glob-matches? ] unit-test
@ -30,7 +30,7 @@ IN: globs.tests
[ t ] [ "fo\\*" glob-pattern? ] unit-test [ t ] [ "fo\\*" glob-pattern? ] unit-test
[ t ] [ "fo{o,bro}" glob-pattern? ] unit-test [ t ] [ "fo{o,bro}" glob-pattern? ] unit-test
{ "foo" "bar" } path-separator join 1array ${ { "foo" "bar" } path-separator join }
[ { "foo" "bar" "ba?" } path-separator join glob-parent-directory ] unit-test [ { "foo" "bar" "ba?" } path-separator join glob-parent-directory ] unit-test
[ "foo" ] [ "foo" ]

View File

@ -60,7 +60,7 @@ some-header: 1; 2
blah blah
; ;
read-request-test-1' 1array [ ${ read-request-test-1' } [
read-request-test-1 lf>crlf read-request-test-1 lf>crlf
[ read-request ] with-string-reader [ read-request ] with-string-reader
[ write-request ] with-string-writer [ write-request ] with-string-writer
@ -157,7 +157,7 @@ content-type: text/html; charset=UTF-8
; ;
read-response-test-1' 1array [ ${ read-response-test-1' } [
URL" http://localhost/" url set URL" http://localhost/" url set
read-response-test-1 lf>crlf read-response-test-1 lf>crlf
[ read-response ] with-string-reader [ read-response ] with-string-reader

View File

@ -1,5 +1,5 @@
USING: assocs arrays json.reader kernel strings tools.test USING: hashtables io.streams.string json json.reader kernel
hashtables json io.streams.string math ; literals math strings tools.test ;
IN: json.reader.tests IN: json.reader.tests
{ f } [ "false" json> ] unit-test { f } [ "false" json> ] unit-test
@ -30,8 +30,8 @@ IN: json.reader.tests
{ "while 1:\n\tpass" } [ """ "while 1:\n\tpass" """ json> ] unit-test { "while 1:\n\tpass" } [ """ "while 1:\n\tpass" """ json> ] unit-test
! unicode is allowed in json ! unicode is allowed in json
{ "ß∂¬ƒ˚∆" } [ """ "ß∂¬ƒ˚∆"""" json> ] unit-test { "ß∂¬ƒ˚∆" } [ """ "ß∂¬ƒ˚∆"""" json> ] unit-test
{ 8 9 10 12 13 34 47 92 } >string 1array [ """ "\\b\\t\\n\\f\\r\\"\\/\\\\" """ json> ] unit-test ${ { 8 9 10 12 13 34 47 92 } >string } [ """ "\\b\\t\\n\\f\\r\\"\\/\\\\" """ json> ] unit-test
{ 0xabcd } >string 1array [ """ "\\uaBCd" """ json> ] unit-test ${ { 0xabcd } >string } [ """ "\\uaBCd" """ json> ] unit-test
{ "𝄞" } [ "\"\\ud834\\udd1e\"" json> ] unit-test { "𝄞" } [ "\"\\ud834\\udd1e\"" json> ] unit-test
{ H{ { "a" { } } { "b" 123 } } } [ "{\"a\":[],\"b\":123}" json> ] unit-test { H{ { "a" { } } { "b" 123 } } } [ "{\"a\":[],\"b\":123}" json> ] unit-test