ontology_parser_test.rb revision cad2121a9e9a87317333b202956ce7478efcc257
require 'test_helper'
context "OntologyParser" do
context 'parsing valid XML with symbols' do
setup do
@symbols = []
@axioms = []
end
end
end
end
{"name"=>"__*__", "range"=>"Examples/Reichel:33.11", "kind" => "op", "text"=>"__*__ : nat * nat -> nat"},
{"name"=>"__+__", "range"=>"Examples/Reichel:32.11", "kind" => "op", "text"=>"__+__ : nat * nat -> nat"},
], @symbols
end
assert_equal [{
"name"=>"... (if exists)",
"symbols"=>["nat","succ : nat -> nat"]
}], @axioms
end
end
setup do
@symbols = []
end
end
end
assert true
end
end
end
end
end