mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 12:54:30 +02:00
Update JSBakerTest.cpp
This commit is contained in:
parent
cae1560708
commit
da8b2d2137
1 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,12 @@ void JSBakerTest::setTestCases() {
|
||||||
|
|
||||||
//No semicolon to terminate an expression, instead a new line used for termination
|
//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;");
|
_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() {
|
void JSBakerTest::testJSBaking() {
|
||||||
|
|
Loading…
Reference in a new issue