Support SELF keyword in Podlang parser (#368)
* Support SELF keyword in Podlang parser * Add pretty-printing for SELF
This commit is contained in:
parent
0606a4098b
commit
c7b39f21f0
5 changed files with 39 additions and 5 deletions
|
|
@ -507,6 +507,16 @@ mod tests {
|
|||
assert_round_trip(&input);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_round_trip_self() {
|
||||
let input = r#"
|
||||
self_test(Pod) = AND(
|
||||
Equal(?Pod["self"], SELF)
|
||||
)
|
||||
"#;
|
||||
assert_round_trip(input);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_pretty_print_demonstration() {
|
||||
let input = r#"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue