Skip to content
Snippets Groups Projects
Commit 23594b81 authored by Mike Pennisi's avatar Mike Pennisi
Browse files

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.
parent f77b930e
No related branches found
No related tags found
No related merge requests found
...@@ -3,15 +3,13 @@ ...@@ -3,15 +3,13 @@
/*--- /*---
info: CARRIAGE RETURN (U+000D) may occur between any two tokens info: CARRIAGE RETURN (U+000D) may occur between any two tokens
esid: sec-line-terminators
es5id: 7.3_A1.2_T2 es5id: 7.3_A1.2_T2
description: Insert real CARRIAGE RETURN between tokens of var x=1 description: Insert real CARRIAGE RETURN between tokens of var x=1
---*/ ---*/
//CHECK#1 varx=1;
var
x
=
1;
if (x !== 1) { if (x !== 1) {
$ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x)); $ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x));
} }
......
...@@ -3,17 +3,14 @@ ...@@ -3,17 +3,14 @@
/*--- /*---
info: Multi line comment can contain CARRIAGE RETURN (U+000D) info: Multi line comment can contain CARRIAGE RETURN (U+000D)
esid: sec-line-terminators
es5id: 7.3_A5.2_T2 es5id: 7.3_A5.2_T2
description: Insert real CARRIAGE RETURN into multi line comment description: Insert real CARRIAGE RETURN into multi line comment
---*/ ---*/
/*CHECK#1*/
var x = 0; var x = 0;
/* /*
multi multi line comment x = 1;
line
comment
x = 1;
*/ */
if (x !== 0) { if (x !== 0) {
$ERROR('#1: var x = 0; /*\\rmulti\\rline\\rcomment\\rx = 1;\\r*/ x === 0. Actual: ' + (x)); $ERROR('#1: var x = 0; /*\\rmulti\\rline\\rcomment\\rx = 1;\\r*/ x === 0. Actual: ' + (x));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment