def test_string_turns_string_into_empty_string(self): h = HaxeTransformer() data = '@:build(flixel.system.FlxAssets.buildFileReferences("assets", true))' output = h.string(data) self.assertIn("", data)
def test_string_turns_node_into_empty_string(self): h = HaxeTransformer() metadata = '@:build(flixel.system.FlxAssets.buildFileReferences("assets", true))' data = Token("LONG_STRING", '"""{}"""'.format(metadata)) output = h.string(data) self.assertEqual("", output)