summaryrefslogtreecommitdiff
path: root/test/prism/fixtures/ternary_operator.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/prism/fixtures/ternary_operator.txt')
-rw-r--r--test/prism/fixtures/ternary_operator.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/prism/fixtures/ternary_operator.txt b/test/prism/fixtures/ternary_operator.txt
new file mode 100644
index 0000000000..79d2d7d837
--- /dev/null
+++ b/test/prism/fixtures/ternary_operator.txt
@@ -0,0 +1,15 @@
+a ? b : c
+
+a ? defined? b : defined? c
+
+empty??true:nil
+
+empty??false:nil
+
+empty??nil:nil
+
+a??nil:nil
+
+a ?var1 : var2
+
+nil??_a =2:1