Example #1
0
 def test_gr2dec_03(self):
     self.assertEqual(gr.gr2dec('-123,452'), gr.dec('-123.45'))
Example #2
0
 def test_dec_08(self):
     self.assertEqual(str(gr.dec(12.2, decimals=0)), '12')
Example #3
0
 def test_gr2dec_01(self):
     self.assertEqual(gr.gr2dec('123.123.123,45'), gr.dec('123123123.45'))
Example #4
0
 def test_dec_06(self):
     self.assertNotEqual(float(gr.dec('tedd')), 1)
Example #5
0
 def test_dec_07(self):
     self.assertEqual(float(gr.dec('tedd')), 0)
Example #6
0
 def test_dec_05(self):
     self.assertEqual(float(gr.dec(15.236344)), 15.24)
Example #7
0
 def test_dec_04(self):
     self.assertEqual(float(gr.dec(None)), 0)
Example #8
0
 def test_dec_03(self):
     self.assertEqual(float(gr.dec('12df')), 0)
Example #9
0
 def test_dec_02(self):
     self.assertEqual(float(gr.dec(12.34)), 12.34)
Example #10
0
 def test_dec_01(self):
     self.assertEqual(float(gr.dec('12.34')), 12.34)