Class ASPParserTest
java.lang.Object
org.tweetyproject.lp.asp.parser.ASPParserTest
This class tests all important functions of the ASP-Core-2 Parser in
combination with InstantiateVisitor, which is responsible for walking through
the parse-tree and generating in-memory classes of the parsed ASP program.
- Author:
- Anna Gessler, Tim Janus
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaggregation testvoidchoice testvoidcling testvoidcomparative testvoidterm testvoidDLVTest()dlv teststatic voidinit()initializes valuesvoidliteral testvoidoptimization statement testvoidtest 1voidasp rules testvoidterm testvoidweight at level test
-
Field Details
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUTdefault timeout- See Also:
-
-
Constructor Details
-
ASPParserTest
public ASPParserTest()
-
-
Method Details
-
init
public static void init()initializes values -
ProgramTest
-
ClingoTest
cling test- Throws:
ParseException- parsing exception
-
DLVTest
-
SimpleASPRulesTest
asp rules test- Throws:
ParseException- parsing exception
-
AggregateTest
aggregation test- Throws:
ParseException- parsing exception
-
OptimizationStatementTest
optimization statement test- Throws:
ParseException- parsing exception
-
ChoiceTest
-
WeightAtLevelTest
weight at level test- Throws:
ParseException- parsing exception
-
SimpleTermTest
term test- Throws:
ParseException- parsing exception
-
ComplexTermTest
term test- Throws:
ParseException- parsing exception
-
ComparativeTest
comparative test- Throws:
ParseException- parsing exception
-
LiteralTest
literal test- Throws:
ParseException- parsing exception
-