tests/gsl_test2.rb in gsl-1.14.7 vs tests/gsl_test2.rb in gsl-1.15.3
- old
+ new
@@ -21,12 +21,15 @@
end
end
# PASS if status == true, FAIL otherwise
def test2(status, desc)
+ $tests += 1
if status == true
+ $passed += 1
printf("PASS: #{desc}\n")
else
+ $failed += 1
printf("FAIL: #{desc}\n")
end
end
def test_factor(result, expected, factor, desc)