Skip to content

Commit 0864b12

Browse files
committed
Fix
1 parent 57f85f0 commit 0864b12

File tree

1 file changed

+0
-69
lines changed

1 file changed

+0
-69
lines changed

test/src/numeric/float_validator_test.dart

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -52,40 +52,6 @@ void main() {
5252
// Assert
5353
expect(result, equals(customErrorMessage));
5454
});
55-
56-
test('should return error if the value exceeds the maximum float value',
57-
() {
58-
// Arrange
59-
const FloatValidator<String> validator = FloatValidator<String>();
60-
const String value = '1.01';
61-
62-
// Act
63-
final String? result = validator.validate(value);
64-
65-
// Assert
66-
expect(result, isNotNull);
67-
expect(
68-
result,
69-
equals(
70-
FormBuilderLocalizations.current.floatErrorText,
71-
),
72-
);
73-
});
74-
75-
test(
76-
'should return custom error message if the value exceeds the maximum float value',
77-
() {
78-
// Arrange
79-
final FloatValidator<String> validator =
80-
FloatValidator<String>(errorText: customErrorMessage);
81-
const String value = '1.01';
82-
83-
// Act
84-
final String? result = validator.validate(value);
85-
86-
// Assert
87-
expect(result, equals(customErrorMessage));
88-
});
8955
});
9056

9157
group('num', () {
@@ -134,41 +100,6 @@ void main() {
134100
expect(result, equals(customErrorMessage));
135101
});
136102

137-
test('should return error if the value exceeds the maximum float value',
138-
() {
139-
// Arrange
140-
const FloatValidator<num> validator = FloatValidator<num>();
141-
const num value = 1.01;
142-
143-
// Act
144-
final String? result = validator.validate(value);
145-
146-
// Assert
147-
expect(result, isNotNull);
148-
expect(
149-
result,
150-
equals(
151-
FormBuilderLocalizations.current.floatErrorText,
152-
),
153-
);
154-
});
155-
156-
test(
157-
'should return custom error message if the value exceeds the maximum float value',
158-
() {
159-
// Arrange
160-
final FloatValidator<num> validator =
161-
FloatValidator<num>(errorText: customErrorMessage);
162-
const num value = 1.01;
163-
164-
// Act
165-
final String? result = validator.validate(value);
166-
167-
// Assert
168-
expect(result, equals(customErrorMessage));
169-
});
170-
});
171-
172103
test('should return null when the value is null and null check is disabled',
173104
() {
174105
// Arrange

0 commit comments

Comments
 (0)