-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish refactoring and extending test to 100% coverage.
- Loading branch information
Showing
21 changed files
with
394 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
% reified fact representation of program: | ||
% #program acid(k). | ||
|
||
program("base",constant_tuple(0),statement_tuple(1)). | ||
program("acid",constant_tuple(2),statement_tuple(5)). | ||
constant_tuple(2,0,function(3)). | ||
function(3,k,term_tuple(4)). |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
atom(12,function(13)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
% Malformed set of ast facts with a missing child fact | ||
|
||
program("base",constant_tuple(0),statement_tuple(1)). | ||
statement_tuple(1,0,rule(2)). | ||
rule(2,literal(3),literal_tuple(7)). | ||
% facts representing head literal a. | ||
literal(3,"pos",atom(4)). | ||
atom(4,function(5)). % child fact function(5,_,_) is missing but required |
11 changes: 11 additions & 0 deletions
11
src/renopro/asp/tests/reify/malformed_ast/multiple_child.lp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
% Malformed set of ast facts with a missing child fact | ||
|
||
program("base",constant_tuple(0),statement_tuple(1)). | ||
statement_tuple(1,0,rule(2)). | ||
rule(2,literal(3),literal_tuple(7)). | ||
% facts representing head literal a. | ||
literal(3,"pos",atom(4)). | ||
atom(4,function(5)). | ||
% should only have one child like function(5,_,_) | ||
function(5,a,term_tuple(6)). | ||
function(5,b,term_tuple(7)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
notafact(dog, "mobius"). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.