diff --git a/tests/testSchema.xsd b/tests/testSchema.xsd
index 90b4f3e..bb4ab73 100644
--- a/tests/testSchema.xsd
+++ b/tests/testSchema.xsd
@@ -121,11 +121,27 @@
-
+
- The expression to be tested.
+
+ The item under test: either a single CQL expression, or a complete CQL library.
+ Exactly one must be provided. Use 'library' instead of 'expression' when the test
+ requires library-level declarations (e.g. function overloads, parameters, includes,
+ or multiple named defines); the expected results are then matched to the library's
+ defines via the 'name' attribute on 'output'.
+
-
+
+
+ The expression to be tested.
+
+
+
+
+ The complete CQL library to be tested.
+
+
+
The expected output of the test.
@@ -199,6 +215,24 @@
+
+
+
+ A complete CQL library provided as the body of the test. The content is the CQL source
+ text (including the 'library' declaration and any defines/functions). Results are matched
+ to individual defines via the 'name' attribute on the test's 'output' element(s).
+
+
+
+
+
+
+ Indicates whether the library is expected to translate/evaluate successfully, or to produce a syntax, semantic, or runtime error.
+
+
+
+
+
@@ -207,6 +241,11 @@
The type of the expected output. If output type is not present, the content of the output is the string representation of a literal (e.g. 10.0)
+
+
+ For library-style tests, the name of the define whose expected result this output describes (corresponds to a 'define' statement in the library). Omitted for single-expression tests.
+
+