summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2015-07-18 10:10:07 +0200
committerChristoph Helma <helma@in-silico.ch>2015-07-18 10:10:07 +0200
commit2b3faa2e52307a76ce25becfb4158ea6752fb870 (patch)
tree9f7dd6914853ac0e94aab60a555866dae5970ef4
parent1d4bfcb3492517fc37f920ab107feb5da6f75f18 (diff)
initial algorithm changes
-rw-r--r--test/algorithm.rb7
-rw-r--r--test/rest/urilist.rb (renamed from test/urilist.rb)0
2 files changed, 4 insertions, 3 deletions
diff --git a/test/algorithm.rb b/test/algorithm.rb
index 01ed930..8b76d47 100644
--- a/test/algorithm.rb
+++ b/test/algorithm.rb
@@ -12,10 +12,11 @@ class AlgorithmTest < MiniTest::Test
def test_set_parameters
a = OpenTox::Algorithm::Generic.new
a.parameters = [
- {RDF::DC.title => "test", RDF::OT.paramScope => "mandatory"},
- {RDF::DC.title => "test2", RDF::OT.paramScope => "optional"}
+ {"title" => "test", "paramScope" => "mandatory"},
+ {"title" => "test2", "paramScope" => "optional"}
]
+ p a
assert_equal 2, a.parameters.size
- assert_equal "mandatory", a.parameters.select{|p| p[RDF::DC.title] == "test"}.first[RDF::OT.paramScope]
+ assert_equal "mandatory", a.parameters.select{|p| p["title"] == "test"}.first["paramScope"]
end
end
diff --git a/test/urilist.rb b/test/rest/urilist.rb
index a269312..a269312 100644
--- a/test/urilist.rb
+++ b/test/rest/urilist.rb