aboutsummaryrefslogtreecommitdiff
path: root/test/elixir_math_parser_test.exs
diff options
context:
space:
mode:
Diffstat (limited to 'test/elixir_math_parser_test.exs')
-rw-r--r--test/elixir_math_parser_test.exs24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/elixir_math_parser_test.exs b/test/elixir_math_parser_test.exs
index 3ccfb94..c71ee79 100644
--- a/test/elixir_math_parser_test.exs
+++ b/test/elixir_math_parser_test.exs
@@ -39,25 +39,25 @@ defmodule ElixirMathParserTest do
test "variable reference" do
assert parse_and_eval("""
- :a = 3
- :b = 2
- :result = :a + :b
- """) == %{a: 3, b: 2, result: 5}
+ :a = 3
+ :b = 2
+ :result = :a + :b
+ """) == %{a: 3, b: 2, result: 5}
end
test "variable update" do
assert parse_and_eval("""
- :a = 3
- :b = 2
- :a = :a + :b
- """) == %{a: 5, b: 2}
+ :a = 3
+ :b = 2
+ :a = :a + :b
+ """) == %{a: 5, b: 2}
end
test "variables with numbers in name" do
assert parse_and_eval("""
- :a1 = 3
- :a2 = 2
- :b1 = :a1 + :a2
- """) == %{a1: 3, a2: 2, b1: 5}
+ :a1 = 3
+ :a2 = 2
+ :b1 = :a1 + :a2
+ """) == %{a1: 3, a2: 2, b1: 5}
end
end