Skip to content

Commit

Permalink
add small test for conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaHoffmann committed Jun 12, 2021
1 parent 22b921f commit 67680e4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/corpus/conditionals.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
==================
simple conditional expression
==================

foo = predicate() ? 1: 2

---

(config_file
(body
(attribute
(identifier)
(expression
(conditional
(expression (expr_term (function_call (identifier))))
(expression (expr_term (literal_value (numeric_lit))))
(expression (expr_term (literal_value (numeric_lit)))))))))

0 comments on commit 67680e4

Please sign in to comment.