Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
intermediate-format
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bibliothek-der-neologie
intermediate-format
Commits
78909b08
Commit
78909b08
authored
7 years ago
by
uwe
Browse files
Options
Downloads
Patches
Plain Diff
some testing of unittesting module
parent
a86d220c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
oxygen/intermediate_format.oxygen.devel.xqm
+31
-25
31 additions, 25 deletions
oxygen/intermediate_format.oxygen.devel.xqm
with
31 additions
and
25 deletions
oxygen/intermediate_format.oxygen.devel.xqm
+
31
−
25
View file @
78909b08
...
...
@@ -135,9 +135,6 @@ declare function local:check-reading
};
declare
function
local:is-save-first-node
(
$node
as
node
())
as
xs:boolean
{
let
$first-descendants
:=
local:first-descendants
(
$node
)
...
...
@@ -147,6 +144,7 @@ declare function local:is-save-first-node
if
(
$has-save-first-descendants
and
not
(
$self-ble
))
then
(
true
())
else
(
false
())
};
declare
function
local:is-save-last-node
(
$node
as
node
())
as
xs:boolean
{
let
$last-descendants
:=
local:last-descendants
(
$node
)
...
...
@@ -162,30 +160,38 @@ let $pre := pre:preprocessing($doc/node())
(:let $pre := pre:preprocessing($doc/node())
let $app-index := local:app-index( $pre//app[not(@type)] )
let $target-index := target:index($app-index):)
let
$test
:=
<test>
<div>
<head>
<app>
<lem>
Überschrift
</lem>
<rdg
wit=
"#a"
type=
"v"
>
überschrift
</rdg>
</app>
</head>
<p>
Erster
Absatz
</p>
<p>
Zweiter
Absatz
</p>
<note>
<app>
<lem>
Anmerkung
</lem>
<rdg
wit=
"#a"
type=
"v"
>
anmerkung
</rdg>
<rdg
wit=
"#b"
type=
"ppl"
><div>
DIV
anmerkung
</div></rdg>
<rdg
wit=
"#c"
type=
"v"
><div>
DIV2
anmerkung
</div></rdg>
</app>
</note>
</div>
</test>
let
$test
:=
<test>
<div>
<head>
<app>
<lem>
<app>
<lem><aligned><hi>
LEM
Überschrift
</hi></aligned></lem>
<rdg
wit=
"#a"
type=
"v"
>
A
Überschrift
</rdg>
</app>
</lem>
<rdg
wit=
"#a"
type=
"v"
>
überschrift
</rdg>
</app>
</head>
<p>
Erster
Absatz
</p>
<p>
Zweiter
Absatz
</p>
<note>
<app>
<lem>
Anmerkung
</lem>
<rdg
wit=
"#a"
type=
"v"
>
anmerkung
</rdg>
<rdg
wit=
"#b"
type=
"ppl"
><div>
DIV
anmerkung
</div></rdg>
<rdg
wit=
"#c"
type=
"v"
><div>
DIV2
anmerkung
</div></rdg>
</app>
</note>
</div>
</test>
return
(
(:ident:left-nodes-path($test),:)
test:branch-axis
(
$test
)
(:ident:identify-unit-test($pre):)
(:test:branch-axis($test):)
test:reading-evaluation
(
$test
)
(:test:identify-target($test):)
(:$pre:)
(:ident:walk($pre, ()):)
(: $target-index:)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment