Update JSBakerTest.cpp

This commit is contained in:
utkarshgautamnyu 2017-09-29 13:33:07 -07:00 committed by GitHub
parent cae1560708
commit da8b2d2137

View file

@ -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() {