Skip to content

Commit

Permalink
Additional test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Baltoli committed Oct 10, 2022
1 parent 260aa4c commit 31d32a4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test2
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<k>
true ~> .
</k>
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ module TEST
imports BOOL
imports K-EQUAL
imports STRING
imports INT

syntax Bool ::= "test" [function]
syntax Bool ::= "test" [function]
| "test2" [function]

// Evaluates to true if the Id constructed by String2Id contains extra quotes
rule test => String2Id("x") ==K #token("\"x\"", "Id")

// Test that hooks producing a result of sort String are wrapped
rule test2 => Int2String(2) ==K "2"
endmodule

0 comments on commit 31d32a4

Please # to comment.