Correct tests

These files were authored to test the effect of the carriage return
character, but that character was not present in the source text.

Insert the character as intended by the authors.
This commit is contained in:
Mike Pennisi 2018-11-11 22:48:29 -05:00
parent f77b930e67
commit 23594b8179
2 changed files with 5 additions and 10 deletions

View File

@ -3,15 +3,13 @@
/*---
info: CARRIAGE RETURN (U+000D) may occur between any two tokens
esid: sec-line-terminators
es5id: 7.3_A1.2_T2
description: Insert real CARRIAGE RETURN between tokens of var x=1
---*/
//CHECK#1
var
x
=
1;
var x = 1;
if (x !== 1) {
$ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x));
}

View File

@ -3,17 +3,14 @@
/*---
info: Multi line comment can contain CARRIAGE RETURN (U+000D)
esid: sec-line-terminators
es5id: 7.3_A5.2_T2
description: Insert real CARRIAGE RETURN into multi line comment
---*/
/*CHECK#1*/
var x = 0;
/*
multi
line
comment
x = 1;
multi line comment x = 1;
*/
if (x !== 0) {
$ERROR('#1: var x = 0; /*\\rmulti\\rline\\rcomment\\rx = 1;\\r*/ x === 0. Actual: ' + (x));