From 8d602b30dd9bf9e1b926c0d732c2ff3fe7b6644a Mon Sep 17 00:00:00 2001
From: ochi51 <ochiai07@gmail.com>
Date: Tue, 12 Sep 2017 20:54:51 +0900
Subject: Fixes exponentiation operator

---
 tests/MathTest.php | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'tests')

diff --git a/tests/MathTest.php b/tests/MathTest.php
index f8a271e..a83a0d4 100644
--- a/tests/MathTest.php
+++ b/tests/MathTest.php
@@ -33,6 +33,12 @@ class MathTest extends \PHPUnit_Framework_TestCase
         $this->assertEquals($calculator->execute('1 / 0'), 0);
     }
 
+    public function testExponentiation()
+    {
+        $calculator = new MathExecutor();
+        $this->assertEquals($calculator->execute('10 ^ 2'), 100);
+    }
+
     /**
      * Expressions data provider
      */
-- 
cgit v1.2.3