From: David Kerkeslager Date: Fri, 4 Aug 2017 23:12:43 +0000 (-0400) Subject: Added integration test to ensure that order of operations is correct X-Git-Url: https://code.kerkeslager.com/?a=commitdiff_plain;h=1c77f2b360855b7af338b2482879ce0da3e50fa8;p=fur Added integration test to ensure that order of operations is correct --- diff --git a/examples/05_order_of_operations.fur b/examples/05_order_of_operations.fur new file mode 100644 index 0000000..c845db5 --- /dev/null +++ b/examples/05_order_of_operations.fur @@ -0,0 +1,11 @@ +print(1 + 2 * 3) +print('\n') +print(4 + 2 // 3) +print('\n') +print(1 + 2 % 3) +print('\n') +print(1 - 2 * 3) +print('\n') +print(4 - 2 // 3) +print('\n') +print(5 - 2 % 3) diff --git a/examples/05_order_of_operations.fur.output.txt b/examples/05_order_of_operations.fur.output.txt new file mode 100644 index 0000000..d9ae1ce --- /dev/null +++ b/examples/05_order_of_operations.fur.output.txt @@ -0,0 +1,6 @@ +7 +4 +3 +-5 +4 +3 \ No newline at end of file