Example #1
0
 def test_dec2gr_06(self):
     self.assertEqual(gr.dec2gr('123123', decimals=0), '123.123')
Example #2
0
 def test_dec2gr_05(self):
     self.assertEqual(gr.dec2gr('-0', zero_as_space=True), ' ')
Example #3
0
 def test_dec2gr_02(self):
     self.assertEqual(gr.dec2gr('-0', 0), '0')
Example #4
0
 def test_dec2gr_04(self):
     self.assertEqual(gr.dec2gr(123123123.45), '123.123.123,45')
Example #5
0
 def test_dec2gr_01(self):
     self.assertEqual(gr.dec2gr('-2456', 1), '-2.456,0')