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)
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)
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)
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)