Skip to content

Commit

Permalink
test: improved test.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamriajul committed Sep 22, 2023
1 parent 9c103b0 commit 13b5a8a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/src/coordinates_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@ void main() {

// Validation Off/False, It won't throw Error
// Latitude Test
expect(
Coordinates(90.7750, -78.6336, validate: false) is Coordinates, true);
expect(
Coordinates(91.7750, -78.6336, validate: false) is Coordinates, true);
expect(Coordinates(90.7750, -78.6336, validate: false), isA<Coordinates>());

expect(Coordinates(91.7750, -78.6336, validate: false), isA<Coordinates>());
// Longitude Test
expect(
Coordinates(89.7750, -180.6336, validate: false) is Coordinates, true);
Coordinates(89.7750, -180.6336, validate: false), isA<Coordinates>());
expect(
Coordinates(89.7750, -181.6336, validate: false) is Coordinates, true);
Coordinates(89.7750, -181.6336, validate: false), isA<Coordinates>());
// Both Latitude and Longitude
expect(
Coordinates(91.7750, -181.6336, validate: false) is Coordinates, true);
Coordinates(91.7750, -181.6336, validate: false), isA<Coordinates>());
});
}

0 comments on commit 13b5a8a

Please sign in to comment.