fix test ripples and minor parfait naming
Parfait ruby and boot names desynced, fixed that
This commit is contained in:
@ -28,7 +28,7 @@ module Parfait
|
||||
def test_to_hash
|
||||
hash = @first.to_hash
|
||||
assert_equal hash[:type] , :Type
|
||||
assert_equal 2 , hash.length
|
||||
assert_equal 3 , hash.length
|
||||
end
|
||||
def test_add_is_different
|
||||
type = @first.add_instance_variable :random , :Integer
|
||||
|
@ -45,7 +45,7 @@ module Risc
|
||||
ret = main_ticks(63)
|
||||
assert_equal FunctionReturn , ret.class
|
||||
assert_equal :r1 , ret.register.symbol
|
||||
assert_equal 20580 , @interpreter.get_register(ret.register)
|
||||
assert_equal 20996 , @interpreter.get_register(ret.register)
|
||||
end
|
||||
def test_sys
|
||||
sys = main_ticks(68)
|
||||
|
@ -52,7 +52,7 @@ module Risc
|
||||
end
|
||||
def test_pc1
|
||||
@interpreter.tick
|
||||
assert_equal 20344 , @interpreter.pc
|
||||
assert_equal 20728 , @interpreter.pc
|
||||
end
|
||||
def test_tick2
|
||||
@interpreter.tick
|
||||
@ -66,7 +66,7 @@ module Risc
|
||||
def test_pc2
|
||||
@interpreter.tick
|
||||
@interpreter.tick
|
||||
assert_equal 20348 , @interpreter.pc
|
||||
assert_equal 20732 , @interpreter.pc
|
||||
end
|
||||
def test_tick_14_jump
|
||||
14.times {@interpreter.tick}
|
||||
|
@ -57,7 +57,7 @@ module Risc
|
||||
assert_equal 0 , Position.get(@machine.cpu_init).at
|
||||
end
|
||||
def test_cpu_at
|
||||
assert_equal "0x5eb4" , Position.get(@machine.cpu_init.first).to_s
|
||||
assert_equal "0x6034" , Position.get(@machine.cpu_init.first).to_s
|
||||
end
|
||||
def test_cpu_label
|
||||
assert_equal Position , Position.get(@machine.cpu_init.first).class
|
||||
|
@ -29,7 +29,7 @@ module Risc
|
||||
end
|
||||
def test_list5
|
||||
list = Parfait.new_list([1,2,3,4,5])
|
||||
assert_equal 32 , list.padded_length
|
||||
assert_equal 64 , list.padded_length
|
||||
end
|
||||
def test_type
|
||||
type = Parfait::Type.for_hash Parfait.object_space.get_class_by_name(:Object) , {}
|
||||
|
Reference in New Issue
Block a user