take the benchmark tests out from the soml

they just run soon long if accidentally invoked
This commit is contained in:
Torsten Ruger 2015-11-21 14:33:52 +02:00
parent 9eab4b7f67
commit a589df7bf9
3 changed files with 12 additions and 62 deletions

View File

@ -19,7 +19,7 @@ class TestSpace < MiniTest::Test
end
def test_integer
int = Parfait::Space.object_space.get_class_by_name :Integer
assert_equal 2, int.method_names.get_length
assert_equal 3, int.method_names.get_length
end
def test_classes_class

View File

@ -31,11 +31,10 @@ class TestPutiRT < MiniTest::Test
# finally settled on the long hackers delight version http://www.hackersdelight.org/divcMore.pdf
def test_div10_random
1000.times do
20.times do
i = rand 0xfffff
@main = "return #{i}.div10()"
check_local i / 10
puts "tested #{i}"
end
end
@ -141,15 +140,6 @@ five.putstring()"
@stdout = "21"
check 21
end
def test_fib20_1000
@main = "int count = 1000
while_plus( count - 1)
20.fibr( )
count = count - 1
end
return count"
check 0
end
def test_fibw8
@main = "int fib = 8.fibw( )
@ -163,31 +153,4 @@ five.putstring()"
@stdout = "6765"
check 6765
end
def test_fib40_100000
@main = "int count = 100352 - 352
while_plus( count - 1)
40.fibw( )
count = count - 1
end
return count"
check 0
end
def test_itos_100000
@main = "int count = 100352 - 352
while_plus( count - 1)
count.to_s( )
count = count - 1
end
return count"
check 0
end
def test_loop_100000
@main = "int count = 100352 - 352
while_plus( count - 1)
count = count - 1
end
return count"
check 0
end
end

View File

@ -177,17 +177,4 @@ return w.char_length
HERE
check 4
end
def test_puts_100000
@main = <<HERE
int count = 100352 - 352
Word hello = "Hello there"
while_plus( count - 1)
hello.putstring()
count = count - 1
end
return 1
HERE
check 1
end
end