def test_unicode_js_library(self):
    create_test_file('main.cpp', '\n      #include <stdio.h>\n      extern "C" {\n        extern void printey();\n      }\n      int main() {\n        printey();\n        return 0;\n      }\n    ')
    self.emcc_args += ['--js-library', path_from_root('tests', 'unicode_library.js')]
    self.do_run(open('main.cpp').read(), u'Unicode snowman ☃ says hello!')
def test_unicode_js_library(self):
    create_test_file('main.cpp', '\n      #include <stdio.h>\n      extern "C" {\n        extern void printey();\n      }\n      int main() {\n        printey();\n        return 0;\n      }\n    ')
    self.emcc_args += ['--js-library', path_from_root('tests', 'unicode_library.js')]
    self.do_run(open('main.cpp').read(), u'Unicode snowman ☃ says hello!')