naming, clean
This commit is contained in:
parent
7d52e71f5c
commit
45adf7173c
@ -15,7 +15,7 @@ class TestAdd < MiniTest::Test
|
|||||||
code = @machine.add :r1 , :r1, 0x22
|
code = @machine.add :r1 , :r1, 0x22
|
||||||
assert_code code , :add , [0x22,0x10,0x81,0xe2] #e2 81 10 22
|
assert_code code , :add , [0x22,0x10,0x81,0xe2] #e2 81 10 22
|
||||||
end
|
end
|
||||||
def test_add_const_shift_lst
|
def test_add_const_shift
|
||||||
code = @machine.add( :r1 , :r1 , 0x22 , shift_lsr: 8)
|
code = @machine.add( :r1 , :r1 , 0x22 , shift_lsr: 8)
|
||||||
assert_code code , :add , [0x22,0x14,0x81,0xe2] #e2 81 14 23
|
assert_code code , :add , [0x22,0x14,0x81,0xe2] #e2 81 14 23
|
||||||
end
|
end
|
||||||
@ -25,6 +25,6 @@ class TestAdd < MiniTest::Test
|
|||||||
end
|
end
|
||||||
def test_big_add
|
def test_big_add
|
||||||
code = @machine.add :r1 , :r1, 0x220
|
code = @machine.add :r1 , :r1, 0x220
|
||||||
assert_code code , :add , [0x20,0x12,0x81,0xe2] #e2 81 12 20
|
assert_code code , :add , [0x20,0x12,0x81,0xe2] #e2 81 12 20 e28110dc
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user