Tests for terminated/unterminated template strings.

This commit is contained in:
Daniel Rosenwasser 2014-11-26 17:14:08 -08:00
parent 0c348d28d5
commit ae384470a4
50 changed files with 205 additions and 0 deletions

View file

@ -0,0 +1,6 @@
//// [templateStringTermination1.ts]
``
//// [templateStringTermination1.js]
"";

View file

@ -0,0 +1,4 @@
=== tests/cases/conformance/es6/templates/templateStringTermination1.ts ===
No type information for this code.``
No type information for this code.

View file

@ -0,0 +1,5 @@
//// [templateStringTermination1_ES6.ts]
``
//// [templateStringTermination1_ES6.js]
``;

View file

@ -0,0 +1,3 @@
=== tests/cases/conformance/es6/templates/templateStringTermination1_ES6.ts ===
``
No type information for this code.

View file

@ -0,0 +1,6 @@
//// [templateStringTermination2.ts]
`\\`
//// [templateStringTermination2.js]
"\";

View file

@ -0,0 +1,4 @@
=== tests/cases/conformance/es6/templates/templateStringTermination2.ts ===
No type information for this code.`\\`
No type information for this code.

View file

@ -0,0 +1,5 @@
//// [templateStringTermination2_ES6.ts]
`\\`
//// [templateStringTermination2_ES6.js]
`\\`;

View file

@ -0,0 +1,3 @@
=== tests/cases/conformance/es6/templates/templateStringTermination2_ES6.ts ===
`\\`
No type information for this code.

View file

@ -0,0 +1,6 @@
//// [templateStringTermination3.ts]
`\``
//// [templateStringTermination3.js]
"`";

View file

@ -0,0 +1,4 @@
=== tests/cases/conformance/es6/templates/templateStringTermination3.ts ===
No type information for this code.`\``
No type information for this code.

View file

@ -0,0 +1,5 @@
//// [templateStringTermination3_ES6.ts]
`\``
//// [templateStringTermination3_ES6.js]
`\``;

View file

@ -0,0 +1,3 @@
=== tests/cases/conformance/es6/templates/templateStringTermination3_ES6.ts ===
`\``
No type information for this code.

View file

@ -0,0 +1,6 @@
//// [templateStringTermination4.ts]
`\\\\`
//// [templateStringTermination4.js]
"\\";

View file

@ -0,0 +1,4 @@
=== tests/cases/conformance/es6/templates/templateStringTermination4.ts ===
No type information for this code.`\\\\`
No type information for this code.

View file

@ -0,0 +1,5 @@
//// [templateStringTermination4_ES6.ts]
`\\\\`
//// [templateStringTermination4_ES6.js]
`\\\\`;

View file

@ -0,0 +1,3 @@
=== tests/cases/conformance/es6/templates/templateStringTermination4_ES6.ts ===
`\\\\`
No type information for this code.

View file

@ -0,0 +1,6 @@
//// [templateStringTermination5.ts]
`\\\\\\`
//// [templateStringTermination5.js]
"\\\";

View file

@ -0,0 +1,4 @@
=== tests/cases/conformance/es6/templates/templateStringTermination5.ts ===
No type information for this code.`\\\\\\`
No type information for this code.

View file

@ -0,0 +1,5 @@
//// [templateStringTermination5_ES6.ts]
`\\\\\\`
//// [templateStringTermination5_ES6.js]
`\\\\\\`;

View file

@ -0,0 +1,3 @@
=== tests/cases/conformance/es6/templates/templateStringTermination5_ES6.ts ===
`\\\\\\`
No type information for this code.

View file

@ -0,0 +1,8 @@
tests/cases/conformance/es6/templates/templateStringUnterminated1.ts(2,2): error TS1160: Unterminated template literal.
==== tests/cases/conformance/es6/templates/templateStringUnterminated1.ts (1 errors) ====
`
!!! error TS1160: Unterminated template literal.

View file

@ -0,0 +1,7 @@
tests/cases/conformance/es6/templates/templateStringUnterminated1_ES6.ts(1,2): error TS1160: Unterminated template literal.
==== tests/cases/conformance/es6/templates/templateStringUnterminated1_ES6.ts (1 errors) ====
`
!!! error TS1160: Unterminated template literal.

View file

@ -0,0 +1,8 @@
tests/cases/conformance/es6/templates/templateStringUnterminated2.ts(2,4): error TS1160: Unterminated template literal.
==== tests/cases/conformance/es6/templates/templateStringUnterminated2.ts (1 errors) ====
`\`
!!! error TS1160: Unterminated template literal.

View file

@ -0,0 +1,7 @@
tests/cases/conformance/es6/templates/templateStringUnterminated2_ES6.ts(1,4): error TS1160: Unterminated template literal.
==== tests/cases/conformance/es6/templates/templateStringUnterminated2_ES6.ts (1 errors) ====
`\`
!!! error TS1160: Unterminated template literal.

View file

@ -0,0 +1,8 @@
tests/cases/conformance/es6/templates/templateStringUnterminated3.ts(2,4): error TS1160: Unterminated template literal.
==== tests/cases/conformance/es6/templates/templateStringUnterminated3.ts (1 errors) ====
`\\
!!! error TS1160: Unterminated template literal.

View file

@ -0,0 +1,7 @@
tests/cases/conformance/es6/templates/templateStringUnterminated3_ES6.ts(1,4): error TS1160: Unterminated template literal.
==== tests/cases/conformance/es6/templates/templateStringUnterminated3_ES6.ts (1 errors) ====
`\\
!!! error TS1160: Unterminated template literal.

View file

@ -0,0 +1,8 @@
tests/cases/conformance/es6/templates/templateStringUnterminated4.ts(2,6): error TS1160: Unterminated template literal.
==== tests/cases/conformance/es6/templates/templateStringUnterminated4.ts (1 errors) ====
`\\\`
!!! error TS1160: Unterminated template literal.

View file

@ -0,0 +1,7 @@
tests/cases/conformance/es6/templates/templateStringUnterminated4_ES6.ts(1,6): error TS1160: Unterminated template literal.
==== tests/cases/conformance/es6/templates/templateStringUnterminated4_ES6.ts (1 errors) ====
`\\\`
!!! error TS1160: Unterminated template literal.

View file

@ -0,0 +1,8 @@
tests/cases/conformance/es6/templates/templateStringUnterminated5.ts(2,8): error TS1160: Unterminated template literal.
==== tests/cases/conformance/es6/templates/templateStringUnterminated5.ts (1 errors) ====
`\\\\\`
!!! error TS1160: Unterminated template literal.

View file

@ -0,0 +1,7 @@
tests/cases/conformance/es6/templates/templateStringUnterminated5_ES6.ts(1,8): error TS1160: Unterminated template literal.
==== tests/cases/conformance/es6/templates/templateStringUnterminated5_ES6.ts (1 errors) ====
`\\\\\`
!!! error TS1160: Unterminated template literal.

View file

@ -0,0 +1,2 @@

``

View file

@ -0,0 +1,2 @@
// @target: ES6
``

View file

@ -0,0 +1,2 @@

`\\`

View file

@ -0,0 +1,2 @@
// @target: ES6
`\\`

View file

@ -0,0 +1,2 @@

`\``

View file

@ -0,0 +1,2 @@
// @target: ES6
`\``

View file

@ -0,0 +1,2 @@

`\\\\`

View file

@ -0,0 +1,2 @@
// @target: ES6
`\\\\`

View file

@ -0,0 +1,2 @@

`\\\\\\`

View file

@ -0,0 +1,2 @@
// @target: ES6
`\\\\\\`

View file

@ -0,0 +1,2 @@

`

View file

@ -0,0 +1,2 @@
// @target: ES6
`

View file

@ -0,0 +1,2 @@

`\`

View file

@ -0,0 +1,2 @@
// @target: ES6
`\`

View file

@ -0,0 +1,2 @@

`\\

View file

@ -0,0 +1,2 @@
// @target: ES6
`\\

View file

@ -0,0 +1,2 @@

`\\\`

View file

@ -0,0 +1,2 @@
// @target: ES6
`\\\`

View file

@ -0,0 +1,2 @@

`\\\\\`

View file

@ -0,0 +1,2 @@
// @target: ES6
`\\\\\`