Cross Reference: szs_parser_spec.rb
xref
: /
ontohub
/
spec
/
lib
/
hets
/
szs_parser_spec.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
require
'spec_helper'
describe
Hets
::
Prove
::
SZSParser
do
%w
(
Theorem
CounterSatisfiable
ResourceOut
)
.
each
do
|
szs_status
|
%w
(
SPASS
)
.
each
do
|
prover
|
context
"#{prover} on #{szs_status}"
do
let
(:
output
)
{
File.read
(
prover_output_fixture
(
szs_status
,
prover
)
)
}
if
szs_status
==
'ResourceOut'
it
"returns ResourceOut"
do
expect
(
Hets
::
Prove
::
SZSParser.new
(
prover
,
output
)
.
call
)
.
to
eq
(
'ResourceOut'
)
end
else
it
"returns nil"
do
expect
(
Hets
::
Prove
::
SZSParser.new
(
prover
,
output
)
.
call
)
.
to
be
(
nil
)
end
end
end
end
%w
(
darwin
darwin
-
non
-
fd
eprover
)
.
each
do
|
prover
|
context
"#{prover} on #{szs_status}"
do
let
(:
output
)
{
File.read
(
prover_output_fixture
(
szs_status
,
prover
)
)
}
it
"returns status '#{szs_status}'"
do
expect
(
Hets
::
Prove
::
SZSParser.new
(
prover
,
output
)
.
call
)
.
to
eq
(
szs_status
)
end
end
end
end
end