Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
6ad3a8fb
Commit
6ad3a8fb
authored
Aug 29, 2018
by
Mathias Goebel
Browse files
test tear down.
parent
0ef40e4a
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/config/config.xqm
View file @
6ad3a8fb
...
...
@@ -161,11 +161,11 @@ declare function config:mkcol($path) {
if(not(starts-with($path, "/")))
then error(QName("error", "path"), "Invalid path. Absolute path required.")
else
if($path => matches("[^a-zA-Z0-9\-\.\+]"))
then error(QName("error", "charset"), "Invalid path. use characters that match [a-zA-Z0-9\-\.\+] only.")
if($path => matches("[^a-zA-Z0-9\-\.\+
/
]"))
then error(QName("error", "charset"), "Invalid path. use characters that match [a-zA-Z0-9\-\.\+
/
] only.")
else
let $components := tokenize($path, "/")[.!=""]
return
local:mkcol-recursive($components[1], subsequence($components, 2))
local:mkcol-recursive(
"/" ||
$components[1], subsequence($components, 2))
};
modules/fontane/index-viewer.xqm
View file @
6ad3a8fb
...
...
@@ -44,6 +44,11 @@ else
update insert $data/* into $doc//tei:body
return true()
};
declare
%test:tearDown
function f-misc:teardown(){
xmldb:remove("/db/sade-projects")
};
(: Main cache function
: @return path to the cached document :)
...
...
modules/fontane/misc.xqm
View file @
6ad3a8fb
...
...
@@ -26,6 +26,11 @@ function f-misc:setup(){
xmldb:store($create/@collection, $create/@name, $create/*)
return true()
};
declare
%test:tearDown
function f-misc:teardown(){
xmldb:remove("/db/sade-projects")
};
declare
%test:arg("baseUri","textgrid:16b00") %test:assertEquals("Notizbuch C7")
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment