diff --git a/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/05.template_literals/spec_example.ets b/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/05.template_literals/spec_example.ets index 45211a1ebe5e8582b70439271e48af749ea7a6b8..244e89fce7d8b1358e1d9330044121013fc6038a 100644 --- a/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/05.template_literals/spec_example.ets +++ b/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/05.template_literals/spec_example.ets @@ -2,5 +2,11 @@ desc: Multi-line string literals that can include embedded expressions are called Template literals ---*/ -let sentence = `This is an example of multi-line string, +function main():void { + let sentence = `This is an example of multi-line string, which should be enclosed in backticks (\`)` + + let sentence2 = "This is an example of multi-line string,\n which should be enclosed in backticks (\\`)" + + assert sentence==sentence2 +}