symbol_parser_test.rb revision 8d01a6c747d3a56d4da5be4fedb341454bed7481
require 'test_helper'
context "SymbolParser" 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"=>[{"text"=>"nat"}, {"text"=>"succ : nat -> nat"}]
}], @axioms
end
end
setup do
@symbols = []
end
end
end
assert true
end
end
end
end
end