コード例 #1
0
ファイル: test_table.py プロジェクト: libAtoms/abcd
 def test_nocut_equal(self):
     assert trim('', 0) == ''
     assert trim('string', 6) == 'string'
コード例 #2
0
ファイル: test_table.py プロジェクト: libAtoms/abcd
 def test_integer_nocut(self):
     assert trim(12345, 5) == '12345'
コード例 #3
0
ファイル: test_table.py プロジェクト: libAtoms/abcd
 def test_integer_cut(self):
     assert trim(12345678, 5) == '12345..'
コード例 #4
0
ファイル: test_table.py プロジェクト: libAtoms/abcd
 def test_cut_zero(self):
     assert trim('string', 0) == '..'
コード例 #5
0
ファイル: test_table.py プロジェクト: libAtoms/abcd
 def test_cut(self):
     assert trim('string', 3) == 'str..'
コード例 #6
0
ファイル: test_table.py プロジェクト: libAtoms/abcd
 def test_negative(self):
     assert trim('string', -7) == '..'
コード例 #7
0
ファイル: test_table.py プロジェクト: libAtoms/abcd
 def test_nocut_negative(self):
     assert trim('string', -1) == 'string'
コード例 #8
0
ファイル: test_table.py プロジェクト: libAtoms/abcd
 def test_nocut_larger(self):
     assert trim('string', 7) == 'string'