Skip to content

Commit 8893d2e

Browse files
test: add use cases with ñ to string cases
1 parent f6166ec commit 8893d2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/form_builder_validators_test.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ void main() {
589589
final validator = FormBuilderValidators.uppercase();
590590
// Pass
591591
expect(validator('HELLO'), isNull);
592+
expect(validator('LASAÑA'), isNull);
592593
// Fail
593594
expect(validator('Hello'), isNotNull);
594595
}),
@@ -600,6 +601,7 @@ void main() {
600601
final validator = FormBuilderValidators.lowercase();
601602
// Pass
602603
expect(validator('hello'), isNull);
604+
expect(validator('lasaña'), isNull);
603605
// Fail
604606
expect(validator('Hello'), isNotNull);
605607
}),
@@ -645,6 +647,7 @@ void main() {
645647
);
646648
// Pass
647649
expect(validator('HELLO'), isNull);
650+
expect(validator('lasAÑA'), isNull);
648651
// Fail
649652
expect(validator('hello'), isNotNull);
650653
}),
@@ -703,6 +706,7 @@ void main() {
703706
final validator = FormBuilderValidators.hasUppercaseChars(atLeast: 1);
704707
// Pass
705708
expect(validator('Hello'), isNull);
709+
expect(validator('lasaÑa'), isNull);
706710
// Fail
707711
expect(validator('hello'), isNotNull);
708712
}),
@@ -714,6 +718,7 @@ void main() {
714718
final validator = FormBuilderValidators.hasLowercaseChars(atLeast: 1);
715719
// Pass
716720
expect(validator('hello'), isNull);
721+
expect(validator('LASAñA'), isNull);
717722
// Fail
718723
expect(validator('HELLO'), isNotNull);
719724
}),

0 commit comments

Comments
 (0)