def __register_string(cls): """ Adds the string type to the dict of predefined types. """ from pynestml.symbols.string_type_symbol import StringTypeSymbol symbol = StringTypeSymbol() cls.name2type[symbol.get_symbol_name()] = symbol return
def test_string_type(self): sts = StringTypeSymbol() result = convert(sts) self.assertEqual(result, 'std::string')