예제 #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'