Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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')