From 4a8cdac587ae464244e9ae4bffc2597b6bd07101 Mon Sep 17 00:00:00 2001 From: gebele Date: Tue, 2 Jul 2019 09:04:47 +0000 Subject: adding text message for assertions; remove value check for regression test, see comment --- test/classification-validation.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/classification-validation.rb') diff --git a/test/classification-validation.rb b/test/classification-validation.rb index 5995c88..b913e1e 100644 --- a/test/classification-validation.rb +++ b/test/classification-validation.rb @@ -50,17 +50,17 @@ class ClassificationValidationTest < MiniTest::Test cv[type][key].each do |arr| arr.each do |a| refute_nil a - assert a > 0 + assert a > 0, "#{cv[type][key]} values should be greater than 0." end end when "predictivity", "true_rate" av.each do |v| refute_nil cv[type][key][v] - assert cv[type][key][v] > 0 + assert cv[type][key][v] > 0, "#{cv[type][key]} values should be greater than 0." end else refute_nil cv[type][key] - assert cv[type][key] > 0 + assert cv[type][key] > 0, "#{cv[type][key]} value should be greater than 0." end end end -- cgit v1.2.3