示例#1
0
文件: test_gr.py 项目: tedlaz/sofos
 def test_dec2gr_06(self):
     self.assertEqual(gr.dec2gr('123123', decimals=0), '123.123')
示例#2
0
文件: test_gr.py 项目: tedlaz/sofos
 def test_dec2gr_05(self):
     self.assertEqual(gr.dec2gr('-0', zero_as_space=True), ' ')
示例#3
0
文件: test_gr.py 项目: tedlaz/sofos
 def test_dec2gr_02(self):
     self.assertEqual(gr.dec2gr('-0', 0), '0')
示例#4
0
文件: test_gr.py 项目: tedlaz/sofos
 def test_dec2gr_04(self):
     self.assertEqual(gr.dec2gr(123123123.45), '123.123.123,45')
示例#5
0
文件: test_gr.py 项目: tedlaz/sofos
 def test_dec2gr_01(self):
     self.assertEqual(gr.dec2gr('-2456', 1), '-2.456,0')