Testname | Status | Got | Expected | Test Input |
EXPath-file-appendText3-002 | FAILED 2 | () | <all-of>
<assert-empty/>
<assert>xs:hexBinary(Q{http://expath.org/ns/file}read-binary("sandpit/test3.txt")) eq
xs:hexBinary("FEFF0061FEFF0062FEFF0063")</assert>
</all-of>
(unescaped) |
(if (file:exists("sandpit/test3.txt"))
then file:delete("sandpit/test3.txt")
else ()),
file:append-text("sandpit/test3.txt", ("a"), "UTF-16"),
file:append-text("sandpit/test3.txt", ("b"), "UTF-16"),
file:append-text("sandpit/test3.txt", ("c"), "UTF-16")
|
EXPath-file-readText2-005 | FAILED | "£" | <error code="Q{http://expath.org/ns/file}io-error"/>
|
(if (file:exists("sandpit/test.txt"))
then file:delete("sandpit/test.txt")
else ()),
file:write-binary("sandpit/test.txt",
xs:base64Binary(xs:hexBinary("A3"))),
file:read-text("sandpit/test.txt", "UTF-8") |
EXPath-file-readTextLines1-015 | FAILED | "£" | <error code="Q{http://expath.org/ns/file}io-error"/>
|
(if (file:exists("sandpit/test.txt"))
then file:delete("sandpit/test.txt")
else ()),
file:write-binary("sandpit/test.txt",
xs:base64Binary(xs:hexBinary("A3"))),
file:read-text-lines("sandpit/test.txt", "UTF-8") |
EXPath-file-writeText3-002 | FAILED 2 | () | <all-of>
<assert-empty/>
<assert>xs:hexBinary(Q{http://expath.org/ns/file}read-binary("sandpit/test3.txt")) eq
xs:hexBinary("FEFF006100620063")</assert>
</all-of>
(unescaped) |
(if (file:exists("sandpit/test3.txt"))
then file:delete("sandpit/test3.txt")
else ()),
file:write-text("sandpit/test3.txt", "abc", "UTF-16") |
EXPath-file-baseDir-001 | FAILED 1 | "http://QT3.W3.ORG" | <all-of>
<assert>ends-with($result, file:dir-separator())</assert>
<assert>
let $base := static-base-uri()
return empty($base) or $result = file:parent($base)
</assert>
</all-of>
|
file:base-dir()
|