test_that("generate_essay generates the correct default XML structure", {
result <- generate_essay()
# Expected output
expected_structure <- structure(
"\neditor\n1\n10\n\n\n0\n0\n0\n\n\n \n\n\n \n",
class = c("glue", "character")
)
# Check if the result matches the expected structure
expect_equal(result, expected_structure)
})