aboutsummaryrefslogtreecommitdiff
path: root/eval_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-06-09 13:52:59 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-06-09 13:52:59 +0200
commita52193cb8bd9f5174ca50a6823290befbb1c01f8 (patch)
treea8a9d87bbad88dd5369f9258342ba21750bc4973 /eval_test.go
parentb1fd0c35c0b562b1e659f135d28ca85cd39e68aa (diff)
...
Diffstat (limited to 'eval_test.go')
-rw-r--r--eval_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval_test.go b/eval_test.go
index 62cd01c..c247efc 100644
--- a/eval_test.go
+++ b/eval_test.go
@@ -67,12 +67,12 @@ func TestEval(t *testing.T) {
end: J1{pc: 11, rsp: 1, rstack: [32]uint16{0, 1, 11}},
},
{ // >r
- // ins: []Instruction{Lit(10), ALU{Opcode: 1, TtoR: true, Ddir: -1, Rdir: 1}},
- // end: J1{pc: 2, rsp: 1, rstack: [32]uint16{10}},
+ ins: []Instruction{Lit(10), ALU{Opcode: 1, TtoR: true, Ddir: -1, Rdir: 1}},
+ end: J1{pc: 2, rsp: 1, rstack: [32]uint16{0, 10}},
},
{ // r>
// ins: []Instruction{Lit(10), Call(20), ALU{Opcode: 11, TtoN: true, TtoR: true, Ddir: 1, Rdir: -1}},
- // end: J1{pc: 2, st0: 21, rsp: 1, rstack: [32]uint16{10}, dsp: 2, dstack: [32]uint16{10}},
+ // end: J1{pc: 21, st0: 2, rsp: 0, rstack: [32]uint16{10, 2}, dsp: 2, dstack: [32]uint16{0, 0, 10}},
},
{ // r@
// ALU{Opcode: 11, TtoN: true, TtoR: true, Ddir: 1}