-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ae707c
commit 4847626
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
xquery version '3.0' ; | ||
|
||
import module namespace test = "https://github.com/chartes/dots/tests" at "utilsTest.xqm"; | ||
|
||
|
||
(: :) | ||
test:check-metadata-output() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
xquery version '3.0' ; | ||
|
||
module namespace test = "https://github.com/chartes/dots/tests"; | ||
|
||
declare namespace dc = "http://purl.org/dc/elements/1.1/"; | ||
declare namespace dct = "http://purl.org/dc/terms/"; | ||
|
||
import module namespace G = "https://github.com/chartes/dots/globals" at "../globals.xqm"; | ||
import module namespace dots.lib = "https://github.com/chartes/dots/lib" at "../lib/resources_register_builder.xqm"; | ||
|
||
declare variable $test:dbTestName := "encpos"; | ||
|
||
(: UtilsTest.xqm | ||
: | ||
: Module pour tester (...) | ||
:) | ||
|
||
declare function test:fixture-OK() { | ||
"vador" | ||
}; | ||
|
||
(: Documentation du test :) | ||
declare %unit:test function test:check-metadata-output() { | ||
let $expected := | ||
"vador" | ||
return | ||
unit:assert-equals(test:fixture-OK(), $expected) | ||
}; | ||
|