Skip to content

Commit

Permalink
running the tests does help
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceFord committed Sep 2, 2023
1 parent 68a0d3d commit 0b738af
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/CompilerTest/Model/CoordinateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ public void TestDegreeMinSecToDecimalDegree(double expected, string coordinateSt
}

[Theory]
[InlineData(54.51555556, "N054.30.56.000")]
[InlineData(51.26757306, "N051.16.03.263")]
[InlineData(-23.85944194, "S023.51.33.991")]
[InlineData(0.52033000, "E000.31.13.188")]
[InlineData(-3.19839500, "W003.11.54.222")]
public void TestDecimalDegreeToDegreeMinSec(double coordinate, string expected) {
Assert.Equal(expected, Coordinate.DecimalDegreeToDegreeMinSec(coordinate, true));
[InlineData(54.51555556, "N054.30.56.000", true)]
[InlineData(51.26757306, "N051.16.03.263", true)]
[InlineData(-23.85944194, "S023.51.33.991", true)]
[InlineData(0.52033000, "E000.31.13.188", false)]
[InlineData(-3.19839500, "W003.11.54.222", false)]
public void TestDecimalDegreeToDegreeMinSec(double coordinate, string expected, bool isLat) {
Assert.Equal(expected, Coordinate.DecimalDegreeToDegreeMinSec(coordinate, isLat));
}
}
}

0 comments on commit 0b738af

Please sign in to comment.