Merge pull request #3632 from Microsoft/fixTestCommentAndName

Fix test comment and name of test
This commit is contained in:
Daniel Rosenwasser
2015-06-25 14:15:56 -04:00
3 changed files with 11 additions and 11 deletions

View File

@@ -1,10 +1,10 @@
tests/cases/compiler/numLit.ts(3,3): error TS1005: ';' expected.
tests/cases/compiler/numLit.ts(9,15): error TS1005: ',' expected.
tests/cases/compiler/numLit.ts(9,23): error TS1005: '=' expected.
tests/cases/compiler/numLit.ts(9,24): error TS1109: Expression expected.
tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts(3,3): error TS1005: ';' expected.
tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts(9,15): error TS1005: ',' expected.
tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts(9,23): error TS1005: '=' expected.
tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts(9,24): error TS1109: Expression expected.
==== tests/cases/compiler/numLit.ts (4 errors) ====
==== tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts (4 errors) ====
1..toString();
1.0.toString();
1.toString();
@@ -15,7 +15,7 @@ tests/cases/compiler/numLit.ts(9,24): error TS1109: Expression expected.
// Preserve whitespace where important for JS compatibility
var i: number = 1;
var test1 = i.toString();
var test2 = 2.toString(); // emitted as 2 .toString()
var test2 = 2.toString();
~~~~~~~~
!!! error TS1005: ',' expected.
~

View File

@@ -1,4 +1,4 @@
//// [numLit.ts]
//// [numericLiteralsWithTrailingDecimalPoints01.ts]
1..toString();
1.0.toString();
1.toString();
@@ -7,7 +7,7 @@
// Preserve whitespace where important for JS compatibility
var i: number = 1;
var test1 = i.toString();
var test2 = 2.toString(); // emitted as 2 .toString()
var test2 = 2.toString();
var test3 = 3 .toString();
var test4 = 3 .toString();
var test5 = 3 .toString();
@@ -18,7 +18,7 @@ var test8 = new Number(4).toString();
var test9 = 3. + 3.
//// [numLit.js]
//// [numericLiteralsWithTrailingDecimalPoints01.js]
1..toString();
1.0.toString();
1.;
@@ -27,7 +27,7 @@ toString();
// Preserve whitespace where important for JS compatibility
var i = 1;
var test1 = i.toString();
var test2 = 2., toString = (); // emitted as 2 .toString()
var test2 = 2., toString = ();
var test3 = 3 .toString();
var test4 = 3 .toString();
var test5 = 3 .toString();

View File

@@ -6,7 +6,7 @@
// Preserve whitespace where important for JS compatibility
var i: number = 1;
var test1 = i.toString();
var test2 = 2.toString(); // emitted as 2 .toString()
var test2 = 2.toString();
var test3 = 3 .toString();
var test4 = 3 .toString();
var test5 = 3 .toString();