public class InferenceTestSuite
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
_DEFAULT_TIMEOUT
Default timeout for queries with unspecified timeouts
|
static long |
totalTime
Total time
|
Constructor and Description |
---|
InferenceTestSuite() |
Modifier and Type | Method and Description |
---|---|
static void |
inferenceUnitTest(java.lang.String testpath,
KB kb,
java.util.ArrayList expectedAnswers,
java.util.ArrayList<java.lang.String> actualAnswers)
The method will be called in InferenceTest in unit test;
It takes a TQG file path, reading the kif statements and queries and expected answers;
It parses E's inference output for actual answers;
Note that this procedure DOES NOT delete any prior user assertions.
|
static void |
main(java.lang.String[] args)
Test method
|
static java.lang.String |
test(KB kb)
Convenience method that sets default parameters
|
static java.lang.String |
test(KB kb,
java.lang.String systemChosen,
int timeout)
Convenience method that sets some default parameters
|
static java.lang.String |
test(KB kb,
java.lang.String systemChosen,
int defaultTimeout,
java.lang.String TPTPlocation)
The main method that controls running a set of tests and returning
the result as an HTML page showing test results and links to proofs.
|
public static long totalTime
public static int _DEFAULT_TIMEOUT
public static java.lang.String test(KB kb) throws java.io.IOException
java.io.IOException
public static java.lang.String test(KB kb, java.lang.String systemChosen, int timeout) throws java.io.IOException
timeout
- is a default timeout that is likely to be
overwritten by a specification in the test
datajava.io.IOException
public static java.lang.String test(KB kb, java.lang.String systemChosen, int defaultTimeout, java.lang.String TPTPlocation) throws java.io.IOException
java.io.IOException
public static void inferenceUnitTest(java.lang.String testpath, KB kb, java.util.ArrayList expectedAnswers, java.util.ArrayList<java.lang.String> actualAnswers)
public static void main(java.lang.String[] args)