diff options
| author | ruki <[email protected]> | 2025-11-15 21:46:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-11-15 21:46:29 +0800 |
| commit | b250c84aee0072ff92b73fe41403d364f95a03d5 (patch) | |
| tree | 594f1d0be9df3618b48cf734286998483f0895f0 /tests/modules/xml/test.lua | |
| parent | 88b0fb7c39cd6b867cdde29fd195f5f2c49b62d7 (diff) | |
update xml api
Diffstat (limited to 'tests/modules/xml/test.lua')
| -rw-r--r-- | tests/modules/xml/test.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modules/xml/test.lua b/tests/modules/xml/test.lua index 41c56c867..4358762fd 100644 --- a/tests/modules/xml/test.lua +++ b/tests/modules/xml/test.lua @@ -80,8 +80,8 @@ function test_load_save(t) attrs = {id = "1"}, children = {xml.text("hello")} }) - assert(xml.save(filepath, doc, {pretty = true})) - local reloaded = xml.load(filepath) + assert(xml.savefile(filepath, doc, {pretty = true})) + local reloaded = xml.loadfile(filepath) t:are_equal(reloaded.name, "root") t:are_equal(xml.text_of(reloaded), "hello") os.tryrm(filepath) |
