Skip to content

Commit

Permalink
add test cases for es2017.string
Browse files Browse the repository at this point in the history
  • Loading branch information
imcotton committed Nov 10, 2016
1 parent 51b66b3 commit 801b7a5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/cases/conformance/es2017/useStringPadding1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// @target: es5
// @lib: es5,es2017.string

var str = 'foo';

str.padStart(5, '-');
str.padEnd(5, '-');
7 changes: 7 additions & 0 deletions tests/cases/conformance/es2017/useStringPadding2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// @target: es5
// @lib: es5

var str = 'foo';

str.padStart(5, '-');
str.padEnd(5, '-');
7 changes: 7 additions & 0 deletions tests/cases/conformance/es2017/useStringPadding3.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// @target: es6
//

var str = 'foo';

str.padStart(5, '-');
str.padEnd(5, '-');
7 changes: 7 additions & 0 deletions tests/cases/conformance/es2017/useStringPadding4.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// @target: es6
// @lib: es2017

var str = 'foo';

str.padStart(5, '-');
str.padEnd(5, '-');

0 comments on commit 801b7a5

Please sign in to comment.