예제 #1
0
 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)
예제 #2
0
 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)