"""Run with XlsxWriter installed; writes the two synthetic XLSX fixtures to cwd."""
import xlsxwriter

for name, constant_memory in [("shared-strings", False), ("inline-strings", True)]:
    workbook = xlsxwriter.Workbook(name + ".xlsx", {"constant_memory": constant_memory})
    sheet = workbook.add_worksheet("Escapes")
    for row, value in enumerate(["first\rsecond", "_x0041_", "_x005F_x0041_"]):
        sheet.write(row, 0, value)
    workbook.close()
