summaryrefslogtreecommitdiffstats
path: root/test/data/snippets/arithmetic_expression.pp
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/snippets/arithmetic_expression.pp')
-rw-r--r--test/data/snippets/arithmetic_expression.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/data/snippets/arithmetic_expression.pp b/test/data/snippets/arithmetic_expression.pp
new file mode 100644
index 000000000..aae98a4db
--- /dev/null
+++ b/test/data/snippets/arithmetic_expression.pp
@@ -0,0 +1,8 @@
+
+$one = 1.30
+$two = 2.034e-2
+
+$result = ((( $two + 2) / $one) + 4 * 5.45) - (6 << 7) + (0x800 + -9)
+
+
+notice("result is $result == 1295.87692307692") \ No newline at end of file