Added calories

This commit is contained in:
Justin Foell
2021-04-30 13:15:16 -05:00
parent d0d12d25e6
commit c90d5c6d28
6 changed files with 55 additions and 3 deletions
+11
View File
@@ -96,4 +96,15 @@ class WPStrava_SOMEnglishTest extends TestCase {
$this->assertEquals( '61:24:31', $this->som->time( 221071 ) );
}
/**
* Test that 1304 calories is 1,304 using both string and int inputs.
*
* @author Justin Foell <justin@foell.org>
* @since 2.9.0
*/
public function test_calories() {
$this->assertEquals( '1,304', $this->som->calories( '1304' ) );
$this->assertEquals( '1,304', $this->som->calories( 1304 ) );
}
}