Exemplo n.º 1
0
 def test02(self):
     const = 123765
     x_pmt = pmt_swig.pmt_from_double(const)
     x_int = pmt_swig.pmt_to_double(x_pmt)
     self.assertEqual(x_int, const)
Exemplo n.º 2
0
 def test02 (self):
     const = 123765
     x_pmt = pmt_swig.pmt_from_double(const)
     x_int = pmt_swig.pmt_to_double(x_pmt)
     self.assertEqual(x_int, const)
Exemplo n.º 3
0
 def test01(self):
     a = pmt_swig.pmt_intern("a")
     b = pmt_swig.pmt_from_double(123765)
     d1 = pmt_swig.pmt_make_dict()
     d2 = pmt_swig.pmt_dict_add(d1, a, b)
     pmt_swig.pmt_print(d2)
Exemplo n.º 4
0
 def test01 (self):
     a = pmt_swig.pmt_intern("a")
     b = pmt_swig.pmt_from_double(123765)
     d1 = pmt_swig.pmt_make_dict()
     d2 = pmt_swig.pmt_dict_add(d1, a, b)
     pmt_swig.pmt_print(d2)