Skip to content

Commit b767438

Browse files
Merge pull request #3632 from Microsoft/fixTestCommentAndName
Fix test comment and name of test
2 parents 52e8b6c + ec2d5f3 commit b767438

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

tests/baselines/reference/numLit.errors.txt renamed to tests/baselines/reference/numericLiteralsWithTrailingDecimalPoints01.errors.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
tests/cases/compiler/numLit.ts(3,3): error TS1005: ';' expected.
2-
tests/cases/compiler/numLit.ts(9,15): error TS1005: ',' expected.
3-
tests/cases/compiler/numLit.ts(9,23): error TS1005: '=' expected.
4-
tests/cases/compiler/numLit.ts(9,24): error TS1109: Expression expected.
1+
tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts(3,3): error TS1005: ';' expected.
2+
tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts(9,15): error TS1005: ',' expected.
3+
tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts(9,23): error TS1005: '=' expected.
4+
tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts(9,24): error TS1109: Expression expected.
55

66

7-
==== tests/cases/compiler/numLit.ts (4 errors) ====
7+
==== tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts (4 errors) ====
88
1..toString();
99
1.0.toString();
1010
1.toString();
@@ -15,7 +15,7 @@ tests/cases/compiler/numLit.ts(9,24): error TS1109: Expression expected.
1515
// Preserve whitespace where important for JS compatibility
1616
var i: number = 1;
1717
var test1 = i.toString();
18-
var test2 = 2.toString(); // emitted as 2 .toString()
18+
var test2 = 2.toString();
1919
~~~~~~~~
2020
!!! error TS1005: ',' expected.
2121
~

tests/baselines/reference/numLit.js renamed to tests/baselines/reference/numericLiteralsWithTrailingDecimalPoints01.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// [numLit.ts]
1+
//// [numericLiteralsWithTrailingDecimalPoints01.ts]
22
1..toString();
33
1.0.toString();
44
1.toString();
@@ -7,7 +7,7 @@
77
// Preserve whitespace where important for JS compatibility
88
var i: number = 1;
99
var test1 = i.toString();
10-
var test2 = 2.toString(); // emitted as 2 .toString()
10+
var test2 = 2.toString();
1111
var test3 = 3 .toString();
1212
var test4 = 3 .toString();
1313
var test5 = 3 .toString();
@@ -18,7 +18,7 @@ var test8 = new Number(4).toString();
1818
var test9 = 3. + 3.
1919

2020

21-
//// [numLit.js]
21+
//// [numericLiteralsWithTrailingDecimalPoints01.js]
2222
1..toString();
2323
1.0.toString();
2424
1.;
@@ -27,7 +27,7 @@ toString();
2727
// Preserve whitespace where important for JS compatibility
2828
var i = 1;
2929
var test1 = i.toString();
30-
var test2 = 2., toString = (); // emitted as 2 .toString()
30+
var test2 = 2., toString = ();
3131
var test3 = 3 .toString();
3232
var test4 = 3 .toString();
3333
var test5 = 3 .toString();

tests/cases/compiler/numLit.ts renamed to tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Preserve whitespace where important for JS compatibility
77
var i: number = 1;
88
var test1 = i.toString();
9-
var test2 = 2.toString(); // emitted as 2 .toString()
9+
var test2 = 2.toString();
1010
var test3 = 3 .toString();
1111
var test4 = 3 .toString();
1212
var test5 = 3 .toString();

0 commit comments

Comments
 (0)