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