diff options
Diffstat (limited to 'test/graph.xspec')
-rw-r--r-- | test/graph.xspec | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/graph.xspec b/test/graph.xspec index 7c823f0..209f965 100644 --- a/test/graph.xspec +++ b/test/graph.xspec @@ -29,6 +29,42 @@ stylesheet="graph-test.xsl"> + <scenario label="graph:make-from-vertices"> + <scenario label="with no vertices"> + <call function="graph:make-from-vertices"> + <param name="vertices" + select="()" /> + </call> + + <expect label="produces an empty graph"> + <preproc:sym-deps /> + </expect> + </scenario> + + + <scenario label="with vertices"> + <call function="graph:make-from-vertices"> + <param name="vertices" + select="$foo:graph-vtwo/preproc:sym-dep" /> + </call> + + <expect label="produces a graph containing those vertices" + select="$foo:graph-vtwo" /> + </scenario> + + + <scenario label="with duplicate vertices"> + <call function="graph:make-from-vertices"> + <param name="vertices" + select="$foo:graph-with-dupes/preproc:sym-dep" /> + </call> + + <expect label="removes duplicate vertices and edges" + select="$foo:graph-deduped" /> + </scenario> + </scenario> + + <scenario label="graph:reverse on a disconnected DAG"> <call function="graph:reverse"> <param name="graph" |