From da8b2d21372eec8ba5a3c38c9be32291768520d6 Mon Sep 17 00:00:00 2001 From: utkarshgautamnyu Date: Fri, 29 Sep 2017 13:33:07 -0700 Subject: [PATCH] Update JSBakerTest.cpp --- tests/baking/src/JSBakerTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/baking/src/JSBakerTest.cpp b/tests/baking/src/JSBakerTest.cpp index 412d91a3e6..244eab4dbc 100644 --- a/tests/baking/src/JSBakerTest.cpp +++ b/tests/baking/src/JSBakerTest.cpp @@ -71,6 +71,12 @@ void JSBakerTest::setTestCases() { //No semicolon to terminate an expression, instead a new line used for termination _testCases.emplace_back("var x=5\nvar y=6;", "var x=5\nvar y=6;"); + + //a + ++b is minified as a+ ++b. + _testCases.emplace_back("a + ++b", "a + ++b"); + + //a - --b is minified as a- --b. + _testCases.emplace_back("a - --b", "a - --b"); } void JSBakerTest::testJSBaking() {