コード例 #1
0
ファイル: test_matchers.py プロジェクト: ijiraq/MOP
 def test_round_sigfigs_more_than_input(self):
     assert_that(round_sigfigs(1234, 7), equal_to(1234.000))
コード例 #2
0
ファイル: test_matchers.py プロジェクト: ijiraq/MOP
 def test_round_sigfigs_neg(self):
     assert_that(round_sigfigs(-1234, 3), equal_to(-1230.0))