more dubious test hacking
This commit is contained in:
parent
0094a89707
commit
23e09b7149
@ -42,7 +42,7 @@ HERE
|
||||
def test_class_field_value
|
||||
@string_input = <<HERE
|
||||
class Object
|
||||
field int boo = 1
|
||||
field int boo1 = 1
|
||||
int main()
|
||||
return 1
|
||||
end
|
||||
@ -55,9 +55,9 @@ HERE
|
||||
def test_class_field
|
||||
@string_input = <<HERE
|
||||
class Object
|
||||
field int boo
|
||||
field int boo2
|
||||
int main()
|
||||
return self.boo
|
||||
return self.boo2
|
||||
end
|
||||
end
|
||||
HERE
|
||||
|
@ -8,7 +8,8 @@ class TestObject < MiniTest::Test
|
||||
|
||||
def test_object_create
|
||||
# another test sometime adds a field variable. Maybe should reboot ?
|
||||
res = @object.get_layout.variable_index(:runner) ? 2 : 1
|
||||
res = 1
|
||||
[:boo1 , :boo2 , :runner].each { |v| res += 1 if @object.get_layout.variable_index(v) }
|
||||
assert_equal res , @object.get_layout.instance_length , @object.get_layout.inspect
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user