mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-10 15:21:58 +02:00
add single quote tests to JS baking tests
This commit is contained in:
parent
e46a8f022c
commit
ab4f110ea4
1 changed files with 3 additions and 1 deletions
|
@ -66,12 +66,14 @@ void JSBakerTest::setTestCases() {
|
|||
_testCases.emplace_back("'abcd1234$%^&[](){}'\na", "'abcd1234$%^&[](){}'\na");
|
||||
_testCases.emplace_back("\"abcd1234$%^&[](){}\"\na", "\"abcd1234$%^&[](){}\"\na");
|
||||
_testCases.emplace_back("`abcd1234$%^&[](){}`\na", "`abcd1234$%^&[](){}`a");
|
||||
_testCases.emplace_back("\' \';", "\' \';");
|
||||
_testCases.emplace_back("\'//single line comment\nvar b=2;\';", "\'//single line comment\nvar b=2;\';");
|
||||
|
||||
// Edge Cases
|
||||
|
||||
//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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue