Fixed Activity filter and added Activity Unit Test

This commit is contained in:
Justin Foell
2019-10-04 15:50:08 -05:00
parent 319b220aa3
commit 00812e55e8
11 changed files with 130 additions and 64 deletions
+2 -3
View File
@@ -26,14 +26,13 @@ class WPStrava_SOMMetricTest extends TestCase {
}
/**
* Test that 42.195 km is 42,195.00 meters using both string and float inputs.
* Test that 42.195 km is 42,195.00 meters using float input.
*
* @author Justin Foell <justin@foell.org>
* @since 1.7.1
*/
public function test_distance_inverse() {
$this->assertEquals( '42,195.00', $this->som->distance_inverse( '42.195' ) );
$this->assertEquals( '42,195.00', $this->som->distance_inverse( 42.195 ) );
$this->assertEquals( 42195.00, $this->som->distance_inverse( 42.195 ) );
}
/**