diff --git a/tests/baselines/reference/templateStringWithBackslashEscapes01.js b/tests/baselines/reference/templateStringWithBackslashEscapes01.js new file mode 100644 index 00000000000..add1fdd9171 --- /dev/null +++ b/tests/baselines/reference/templateStringWithBackslashEscapes01.js @@ -0,0 +1,13 @@ +//// [templateStringWithBackslashEscapes01.ts] + + +var a = `hello\world`; +var b = `hello\\world`; +var c = `hello\\\world`; +var d = `hello\\\\world`; + +//// [templateStringWithBackslashEscapes01.js] +var a = "helloworld"; +var b = "hello\\world"; +var c = "hello\\world"; +var d = "hello\\\\world"; diff --git a/tests/baselines/reference/templateStringWithBackslashEscapes01.symbols b/tests/baselines/reference/templateStringWithBackslashEscapes01.symbols new file mode 100644 index 00000000000..3c706afea5f --- /dev/null +++ b/tests/baselines/reference/templateStringWithBackslashEscapes01.symbols @@ -0,0 +1,15 @@ +=== tests/cases/conformance/es6/templates/templateStringWithBackslashEscapes01.ts === + + +var a = `hello\world`; +>a : Symbol(a, Decl(templateStringWithBackslashEscapes01.ts, 2, 3)) + +var b = `hello\\world`; +>b : Symbol(b, Decl(templateStringWithBackslashEscapes01.ts, 3, 3)) + +var c = `hello\\\world`; +>c : Symbol(c, Decl(templateStringWithBackslashEscapes01.ts, 4, 3)) + +var d = `hello\\\\world`; +>d : Symbol(d, Decl(templateStringWithBackslashEscapes01.ts, 5, 3)) + diff --git a/tests/baselines/reference/templateStringWithBackslashEscapes01.types b/tests/baselines/reference/templateStringWithBackslashEscapes01.types new file mode 100644 index 00000000000..58f923dca54 --- /dev/null +++ b/tests/baselines/reference/templateStringWithBackslashEscapes01.types @@ -0,0 +1,19 @@ +=== tests/cases/conformance/es6/templates/templateStringWithBackslashEscapes01.ts === + + +var a = `hello\world`; +>a : string +>`hello\world` : string + +var b = `hello\\world`; +>b : string +>`hello\\world` : string + +var c = `hello\\\world`; +>c : string +>`hello\\\world` : string + +var d = `hello\\\\world`; +>d : string +>`hello\\\\world` : string + diff --git a/tests/baselines/reference/templateStringWithBackslashEscapes01_ES6.js b/tests/baselines/reference/templateStringWithBackslashEscapes01_ES6.js new file mode 100644 index 00000000000..3b5f1e2c14e --- /dev/null +++ b/tests/baselines/reference/templateStringWithBackslashEscapes01_ES6.js @@ -0,0 +1,12 @@ +//// [templateStringWithBackslashEscapes01_ES6.ts] + +var a = `hello\world`; +var b = `hello\\world`; +var c = `hello\\\world`; +var d = `hello\\\\world`; + +//// [templateStringWithBackslashEscapes01_ES6.js] +var a = `hello\world`; +var b = `hello\\world`; +var c = `hello\\\world`; +var d = `hello\\\\world`; diff --git a/tests/baselines/reference/templateStringWithBackslashEscapes01_ES6.symbols b/tests/baselines/reference/templateStringWithBackslashEscapes01_ES6.symbols new file mode 100644 index 00000000000..c5ccef88d5a --- /dev/null +++ b/tests/baselines/reference/templateStringWithBackslashEscapes01_ES6.symbols @@ -0,0 +1,14 @@ +=== tests/cases/conformance/es6/templates/templateStringWithBackslashEscapes01_ES6.ts === + +var a = `hello\world`; +>a : Symbol(a, Decl(templateStringWithBackslashEscapes01_ES6.ts, 1, 3)) + +var b = `hello\\world`; +>b : Symbol(b, Decl(templateStringWithBackslashEscapes01_ES6.ts, 2, 3)) + +var c = `hello\\\world`; +>c : Symbol(c, Decl(templateStringWithBackslashEscapes01_ES6.ts, 3, 3)) + +var d = `hello\\\\world`; +>d : Symbol(d, Decl(templateStringWithBackslashEscapes01_ES6.ts, 4, 3)) + diff --git a/tests/baselines/reference/templateStringWithBackslashEscapes01_ES6.types b/tests/baselines/reference/templateStringWithBackslashEscapes01_ES6.types new file mode 100644 index 00000000000..7d158dd14f4 --- /dev/null +++ b/tests/baselines/reference/templateStringWithBackslashEscapes01_ES6.types @@ -0,0 +1,18 @@ +=== tests/cases/conformance/es6/templates/templateStringWithBackslashEscapes01_ES6.ts === + +var a = `hello\world`; +>a : string +>`hello\world` : string + +var b = `hello\\world`; +>b : string +>`hello\\world` : string + +var c = `hello\\\world`; +>c : string +>`hello\\\world` : string + +var d = `hello\\\\world`; +>d : string +>`hello\\\\world` : string +