OLD | NEW |
1 totalTests() { | 1 totalTests() { |
2 test('DateUtils', () { | 2 test('DateUtils', () { |
3 _isDate('1/1'); | 3 _isDate('1/1'); |
4 _isDate('12/1'); | 4 _isDate('12/1'); |
5 _isDate('11/31'); | 5 _isDate('11/31'); |
6 _isDate('01/1'); | 6 _isDate('01/1'); |
7 _isDate('1/01'); | 7 _isDate('1/01'); |
8 _isDate('01/01'); | 8 _isDate('01/01'); |
9 _isDate('1-1'); | 9 _isDate('1-1'); |
10 _isDate('12-1'); | 10 _isDate('12-1'); |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 Expect.isFalse(DateUtils.isDate(date), "DateUtils.isDate(${date})"); | 454 Expect.isFalse(DateUtils.isDate(date), "DateUtils.isDate(${date})"); |
455 } | 455 } |
456 | 456 |
457 _assertNumeric(String s) { | 457 _assertNumeric(String s) { |
458 Expect.isTrue(StringUtils.isNumeric(s), 'StringUtils.isNumeric("{$s}")'); | 458 Expect.isTrue(StringUtils.isNumeric(s), 'StringUtils.isNumeric("{$s}")'); |
459 } | 459 } |
460 | 460 |
461 _assertNonNumeric(String s) { | 461 _assertNonNumeric(String s) { |
462 Expect.isFalse(StringUtils.isNumeric(s), '!StringUtils.isNumeric("${s}")'); | 462 Expect.isFalse(StringUtils.isNumeric(s), '!StringUtils.isNumeric("${s}")'); |
463 } | 463 } |
OLD | NEW |