public class InferenceTestSuite extends 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(String testpath,
KB kb,
ArrayList expectedAnswers,
ArrayList<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(String[] args)
Test method
|
static String |
test(KB kb)
Convenience method that sets default parameters
|
static String |
test(KB kb,
String systemChosen,
int timeout)
Convenience method that sets some default parameters
|
static String |
test(KB kb,
String systemChosen,
int defaultTimeout,
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 String test(KB kb) throws IOException
IOExceptionpublic static String test(KB kb, String systemChosen, int timeout) throws IOException
timeout - is a default timeout that is likely to be
overwritten by a specification in the test
dataIOExceptionpublic static String test(KB kb, String systemChosen, int defaultTimeout, String TPTPlocation) throws IOException
IOExceptionpublic static void inferenceUnitTest(String testpath, KB kb, ArrayList expectedAnswers, ArrayList<String> actualAnswers)
public static void main(String[] args)
Copyright © 2015. All rights reserved.