JS: Update test

This commit is contained in:
Asger F
2019-02-28 16:49:35 +00:00
parent 47b5f34870
commit 8dfec58428
6 changed files with 17 additions and 3 deletions

View File

@@ -5,3 +5,5 @@
| tst.js:9:7:9:19 | ~A.indexOf(B) | tst.js:9:8:9:8 | A | tst.js:9:18:9:18 | B | true |
| tst.js:12:7:12:25 | A.indexOf(B) === -1 | tst.js:12:7:12:7 | A | tst.js:12:17:12:17 | B | false |
| tst.js:13:7:13:22 | A.indexOf(B) < 0 | tst.js:13:7:13:7 | A | tst.js:13:17:13:17 | B | false |
| tst.js:20:7:20:28 | strings ... s(A, B) | tst.js:20:24:20:24 | A | tst.js:20:27:20:27 | B | true |
| tst.js:21:7:21:43 | strings ... s(A, B) | tst.js:21:39:21:39 | A | tst.js:21:42:21:42 | B | true |

View File

@@ -1,5 +1,5 @@
import * as _ from 'lodash';
let strings = goog.require('goog.string');
function test() {
if (A.includes(B)) {}
@@ -16,4 +16,7 @@ function test() {
if (A.indexOf(B) === 0) {}
if (A.indexOf(B) !== 0) {}
if (A.indexOf(B) > 0) {}
if (strings.contains(A, B)) {}
if (strings.caseInsensitiveContains(A, B)) {}
}