summaryrefslogtreecommitdiff
path: root/test/classification-validation.rb
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2019-07-02 09:04:47 +0000
committergebele <gebele@in-silico.ch>2019-07-02 09:04:47 +0000
commit4a8cdac587ae464244e9ae4bffc2597b6bd07101 (patch)
tree8bd2e874a68b655048ec95172ffd1434b1eb3391 /test/classification-validation.rb
parentb536a45cf18b070cec3f9cb8a44fdac0bfa3c58e (diff)
adding text message for assertions; remove value check for regression test, see comment
Diffstat (limited to 'test/classification-validation.rb')
-rw-r--r--test/classification-validation.rb6
1 files changed, 3 insertions, 3 deletions
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