def test_haxe_turns_node_into_haxe_code(self): h = HaxeTransformer() haxe_code = '@:build(flixel.system.FlxAssets.buildFileReferences("assets", true))' metadata = '@haxe: {}'.format(haxe_code) data = Token("LONG_STRING", metadata) output = h.haxe(data) self.assertEqual(haxe_code, output)
def test_haxe_turns_string_into_haxe_code(self): h = HaxeTransformer() haxe_code = '@:build(flixel.system.FlxAssets.buildFileReferences("assets", true))' data = '@haxe: {}'.format(haxe_code) output = h.haxe(data) self.assertEqual(haxe_code, output)