Skip to content

Commit d3c8b91

Browse files
committed
added some more tests
1 parent d6f54ff commit d3c8b91

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/form_builder_validators_test.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,11 @@ void main() {
412412
expect(validator('www.google.com'), isNull);
413413
expect(validator('google.com'), isNull);
414414
expect(validator('http://google.com'), isNull);
415+
expect(validator('HTTPS://GOOGLE.COM'), isNull);
416+
expect(validator('GOOGLE.com'), isNull);
417+
expect(validator('GOOGLE.COM'), isNull);
418+
expect(validator('google.com/search?q=TEST'), isNull);
419+
expect(validator('google.com/search#MY_AWESOME_THING'), isNull);
415420
// Fail
416421
expect(validator('.com'), isNotNull);
417422
// Advanced overrides
@@ -457,3 +462,10 @@ void main() {
457462
expect(validator('ABC'), isNotNull);
458463
}));
459464
}
465+
466+
class Test implements Comparable<Test> {
467+
@override
468+
int compareTo(Test other) {
469+
throw UnimplementedError();
470+
}
471+
}

0 commit comments

Comments
 (0)