def test_utf8(self):
    if self.get_setting('MINIMAL_RUNTIME'):
        self.set_setting('DEFAULT_LIBRARY_FUNCS_TO_INCLUDE', ['$AsciiToString', '$stringToAscii', '$writeAsciiToMemory'])
    else:
        self.set_setting('EXTRA_EXPORTED_RUNTIME_METHODS', ['UTF8ToString', 'stringToUTF8', 'AsciiToString', 'stringToAscii'])
    self.do_run(open(path_from_root('tests', 'utf8.cpp')).read(), 'OK.')
def test_utf8(self):
    if self.get_setting('MINIMAL_RUNTIME'):
        self.set_setting('DEFAULT_LIBRARY_FUNCS_TO_INCLUDE', ['$AsciiToString', '$stringToAscii', '$writeAsciiToMemory'])
    else:
        self.set_setting('EXTRA_EXPORTED_RUNTIME_METHODS', ['UTF8ToString', 'stringToUTF8', 'AsciiToString', 'stringToAscii'])
    self.do_run(open(path_from_root('tests', 'utf8.cpp')).read(), 'OK.')