Added segment block with test

This commit is contained in:
Justin Foell
2021-04-30 14:59:10 -05:00
parent d3572c9942
commit 30f0377b45
10 changed files with 314 additions and 13 deletions
+11
View File
@@ -107,4 +107,15 @@ class WPStrava_SOMEnglishTest extends TestCase {
$this->assertEquals( '1,304', $this->som->calories( 1304 ) );
}
/**
* Test that 5.7 grade is 5.7% using both string and int inputs.
*
* @author Justin Foell <justin@foell.org>
* @since 2.9.0
*/
public function test_percent() {
$this->assertEquals( '5.7%', $this->som->percent( '5.7' ) );
$this->assertEquals( '5.7%', $this->som->percent( 5.7 ) );
}
}