def __register_real(cls): """ Adds the real type symbol to the dict of predefined types. """ from pynestml.symbols.real_type_symbol import RealTypeSymbol symbol = RealTypeSymbol() cls.name2type[symbol.get_symbol_name()] = symbol return
def test_real_type(self): rts = RealTypeSymbol() result = convert(rts) self.assertEqual(result, 'double')