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