コード例 #1
0
 def test_repr(self):
     assert repr(T.day()) == '<Timedelta: 1 day>'
     assert repr(T.day(2)) == '<Timedelta: 2 days>'
     assert repr(T.year()) == '<Timedelta: 1 year>'
     assert repr(T.month(2)) == '<Timedelta: 2 months>'
     assert repr(T.second(40)) == '<Timedelta: 40 seconds>'
コード例 #2
0
ファイル: test_temporal.py プロジェクト: BabelTower/ibis
 def test_repr(self):
     assert repr(T.day()) == '<Timedelta: 1 day>'
     assert repr(T.day(2)) == '<Timedelta: 2 days>'
     assert repr(T.year()) == '<Timedelta: 1 year>'
     assert repr(T.month(2)) == '<Timedelta: 2 months>'
     assert repr(T.second(40)) == '<Timedelta: 40 seconds>'