From 1ebcee38904b3ea2823cad383050372d1041ab78 Mon Sep 17 00:00:00 2001 From: David Lichteblau Date: Mon, 9 Apr 2007 18:22:09 +0200 Subject: [PATCH] tests fuer validierung --- TEST | 531 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- cxml-rng.asd | 3 +- parse.lisp | 55 ------- test.lisp | 129 +++++++++++++++ 4 files changed, 661 insertions(+), 57 deletions(-) create mode 100644 test.lisp diff --git a/TEST b/TEST index c74bcfe..aa27ebc 100644 --- a/TEST +++ b/TEST @@ -47,32 +47,42 @@ 047: PASS: RNG-ERROR 048: PASS: RNG-ERROR 049: PASS +049-1.v: FAIL: invalid number of arguments: 4 050: PASS +050-1.v: FAIL: invalid number of arguments: 4 051: PASS 052: PASS 053: FAIL: didn't detect invalid schema 054: PASS +054-1.v: FAIL: invalid number of arguments: 4 055: PASS +055-1.v: FAIL: invalid number of arguments: 4 056: FAIL: didn't detect invalid schema 057: FAIL: didn't detect invalid schema 058: FAIL: didn't detect invalid schema 059: PASS +059-1.v: FAIL: invalid number of arguments: 4 060: FAIL: didn't detect invalid schema 061: FAIL: didn't detect invalid schema 062: FAIL: didn't detect invalid schema 063: FAIL: didn't detect invalid schema 064: PASS +064-1.v: FAIL: invalid number of arguments: 4 065: PASS +065-1.v: FAIL: invalid number of arguments: 4 066: PASS +066-1.v: FAIL: invalid number of arguments: 4 067: FAIL: didn't detect invalid schema 068: FAIL: didn't detect invalid schema 069: PASS +069-1.v: FAIL: invalid number of arguments: 4 070: FAIL: didn't detect invalid schema 071: FAIL: didn't detect invalid schema 072: FAIL: didn't detect invalid schema 073: FAIL: didn't detect invalid schema 074: FAIL: didn't detect invalid schema 075: PASS +075-1.v: FAIL: invalid number of arguments: 4 076: FAIL: didn't detect invalid schema 077: FAIL: didn't detect invalid schema 078: FAIL: didn't detect invalid schema @@ -86,73 +96,243 @@ 086: PASS: RNG-ERROR 087: PASS: RNG-ERROR 088: PASS +088-1.v: FAIL: invalid number of arguments: 4 089: PASS +089-1.v: FAIL: invalid number of arguments: 4 090: PASS +090-1.v: FAIL: invalid number of arguments: 4 091: PASS +091-1.v: FAIL: invalid number of arguments: 4 092: PASS +092-1.v: FAIL: invalid number of arguments: 4 093: PASS +093-1.v: FAIL: invalid number of arguments: 4 094: PASS +094-1.v: FAIL: invalid number of arguments: 4 095: PASS +095-1.v: FAIL: invalid number of arguments: 4 +095-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 096: PASS +096-1.v: FAIL: invalid number of arguments: 4 097: PASS +097-1.v: FAIL: invalid number of arguments: 4 098: PASS +098-1.v: FAIL: invalid number of arguments: 4 099: PASS +099-1.v: FAIL: invalid number of arguments: 4 +099-2.v: FAIL: invalid number of arguments: 4 +099-3.v: FAIL: invalid number of arguments: 4 +099-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +099-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 100: PASS +100-1.v: FAIL: invalid number of arguments: 4 +100-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 101: PASS +101-1.v: FAIL: invalid number of arguments: 4 +101-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 102: FAIL: didn't detect invalid schema 103: PASS +103-1.v: FAIL: invalid number of arguments: 4 +103-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 104: PASS +104-1.v: FAIL: invalid number of arguments: 4 +104-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 105: PASS: RNG-ERROR 106: PASS: RNG-ERROR 107: PASS: RNG-ERROR 108: PASS +108-1.v: FAIL: invalid number of arguments: 4 +108-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 109: PASS +109-1.v: FAIL: invalid number of arguments: 4 +109-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 110: PASS +110-1.v: FAIL: invalid number of arguments: 4 +110-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 111: PASS +111-1.v: FAIL: invalid number of arguments: 4 +111-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 112: PASS: RNG-ERROR 113: PASS: RNG-ERROR 114: PASS: RNG-ERROR 115: PASS +115-1.v: FAIL: invalid number of arguments: 4 +115-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 116: PASS: RNG-ERROR 117: FAIL: no in grammar [ Error at line 10, column 11 in # ] +117-1.v: FAIL: cannot run test +117-2.i: FAIL: cannot run test 118: PASS: RNG-ERROR 119: FAIL: unresolved reference to foo [ Error at line 8, column 11 in # ] +119-1.v: FAIL: cannot run test +119-2.i: FAIL: cannot run test 120: PASS +120-1.v: FAIL: invalid number of arguments: 4 +120-2.v: FAIL: invalid number of arguments: 4 +120-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 121: PASS: RNG-ERROR 122: PASS +122-1.v: FAIL: invalid number of arguments: 4 +122-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 123: PASS +123-1.i: FAIL: incorrect condition type: invalid number of arguments: 4 +123-2.v: FAIL: invalid number of arguments: 4 124: PASS +124-1.v: FAIL: invalid number of arguments: 4 +124-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 125: PASS +125-1.v: FAIL: invalid number of arguments: 4 +125-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 126: PASS +126-1.v: FAIL: invalid number of arguments: 4 +126-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 127: PASS +127-1.v: FAIL: invalid number of arguments: 4 +127-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 128: PASS +128-1.v: FAIL: invalid number of arguments: 4 +128-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 129: PASS: RNG-ERROR 130: PASS +130-1.v: FAIL: invalid number of arguments: 4 +130-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 131: PASS +131-1.v: FAIL: invalid number of arguments: 4 +131-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 132: PASS +132-1.v: FAIL: invalid number of arguments: 4 +132-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 133: PASS +133-1.v: FAIL: invalid number of arguments: 4 +133-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 134: PASS +134-1.v: FAIL: invalid number of arguments: 4 +134-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +134-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +134-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +134-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +134-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +134-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 +134-8.i: FAIL: incorrect condition type: invalid number of arguments: 4 135: PASS +135-1.v: FAIL: invalid number of arguments: 4 +135-2.v: FAIL: invalid number of arguments: 4 +135-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +135-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +135-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +135-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +135-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 +135-8.i: FAIL: incorrect condition type: invalid number of arguments: 4 136: PASS +136-1.v: FAIL: invalid number of arguments: 4 +136-2.v: FAIL: invalid number of arguments: 4 +136-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +136-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +136-5.v: FAIL: invalid number of arguments: 4 +136-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +136-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 +136-8.i: FAIL: incorrect condition type: invalid number of arguments: 4 137: PASS +137-1.v: FAIL: invalid number of arguments: 4 +137-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +137-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +137-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +137-5.v: FAIL: invalid number of arguments: 4 +137-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +137-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 +137-8.i: FAIL: incorrect condition type: invalid number of arguments: 4 138: PASS +138-1.v: FAIL: invalid number of arguments: 4 +138-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 139: PASS +139-1.v: FAIL: invalid number of arguments: 4 +139-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +139-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +139-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +139-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +139-6.v: FAIL: invalid number of arguments: 4 +139-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 +139-8.i: FAIL: incorrect condition type: invalid number of arguments: 4 140: PASS +140-1.v: FAIL: invalid number of arguments: 4 +140-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +140-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +140-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +140-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +140-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +140-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 +140-8.i: FAIL: incorrect condition type: invalid number of arguments: 4 141: PASS +141-1.v: FAIL: invalid number of arguments: 4 +141-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +141-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +141-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 142: PASS +142-1.v: FAIL: invalid number of arguments: 4 +142-2.v: FAIL: invalid number of arguments: 4 +142-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +142-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +142-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 143: PASS +143-1.v: FAIL: invalid number of arguments: 4 +143-2.v: FAIL: invalid number of arguments: 4 +143-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 144: PASS +144-1.v: FAIL: invalid number of arguments: 4 +144-2.v: FAIL: invalid number of arguments: 4 +144-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 145: PASS +145-1.v: FAIL: invalid number of arguments: 4 +145-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +145-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +145-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +145-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +145-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +145-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 +145-8.i: FAIL: incorrect condition type: invalid number of arguments: 4 146: PASS +146-1.v: FAIL: invalid number of arguments: 4 +146-2.v: FAIL: invalid number of arguments: 4 +146-3.v: FAIL: invalid number of arguments: 4 +146-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 147: PASS +147-1.v: FAIL: invalid number of arguments: 4 +147-2.v: FAIL: invalid number of arguments: 4 +147-3.v: FAIL: invalid number of arguments: 4 +147-4.v: FAIL: invalid number of arguments: 4 +147-5.v: FAIL: invalid number of arguments: 4 +147-6.v: FAIL: invalid number of arguments: 4 +147-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 +147-8.i: FAIL: incorrect condition type: invalid number of arguments: 4 148: PASS +148-1.v: FAIL: invalid number of arguments: 4 +148-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 149: PASS +149-1.v: FAIL: invalid number of arguments: 4 +149-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 150: PASS +150-1.v: FAIL: invalid number of arguments: 4 +150-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 151: PASS +151-1.v: FAIL: invalid number of arguments: 4 +151-2.v: FAIL: invalid number of arguments: 4 +151-3.v: FAIL: invalid number of arguments: 4 +151-4.v: FAIL: invalid number of arguments: 4 +151-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +151-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 152: PASS +152-1.v: FAIL: invalid number of arguments: 4 +152-2.v: FAIL: invalid number of arguments: 4 +152-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +152-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 153: PASS +153-1.v: FAIL: invalid number of arguments: 4 +153-2.v: FAIL: invalid number of arguments: 4 +153-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +153-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +153-5.v: FAIL: invalid number of arguments: 4 154: PASS: RNG-ERROR 155: PASS: RNG-ERROR 156: PASS: RNG-ERROR @@ -163,6 +343,7 @@ 161: PASS: RNG-ERROR 162: FAIL: didn't detect invalid schema 163: PASS +163-1.v: FAIL: invalid number of arguments: 4 164: FAIL: didn't detect invalid schema 165: FAIL: didn't detect invalid schema 166: FAIL: didn't detect invalid schema @@ -176,6 +357,7 @@ 174: PASS: RNG-ERROR 175: FAIL: didn't detect invalid schema 176: PASS +176-1.v: FAIL: invalid number of arguments: 4 177: FAIL: didn't detect invalid schema 178: FAIL: didn't detect invalid schema 179: FAIL: didn't detect invalid schema @@ -190,11 +372,27 @@ 188: PASS: RNG-ERROR 189: PASS: RNG-ERROR 190: PASS +190-1.v: FAIL: invalid number of arguments: 4 +190-2.v: FAIL: invalid number of arguments: 4 +190-3.v: FAIL: invalid number of arguments: 4 +190-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 191: PASS +191-1.v: FAIL: invalid number of arguments: 4 +191-2.v: FAIL: invalid number of arguments: 4 +191-3.v: FAIL: invalid number of arguments: 4 +191-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 192: PASS: RNG-ERROR 193: PASS: RNG-ERROR 194: PASS +194-1.v: FAIL: invalid number of arguments: 4 +194-2.v: FAIL: invalid number of arguments: 4 +194-3.v: FAIL: invalid number of arguments: 4 +194-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 195: PASS +195-1.v: FAIL: invalid number of arguments: 4 +195-2.v: FAIL: invalid number of arguments: 4 +195-3.v: FAIL: invalid number of arguments: 4 +195-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 196: PASS: RNG-ERROR 197: PASS: RNG-ERROR 198: PASS: RNG-ERROR @@ -208,82 +406,391 @@ 206: PASS: RNG-ERROR 207: PASS: RNG-ERROR 208: PASS +208-1.v: FAIL: invalid number of arguments: 4 209: PASS +209-1.v: FAIL: invalid number of arguments: 4 +209-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 210: PASS +210-1.v: FAIL: invalid number of arguments: 4 +210-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 211: PASS: RNG-ERROR 212: PASS +212-1.v: FAIL: invalid number of arguments: 4 +212-2.v: FAIL: invalid number of arguments: 4 +212-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 213: PASS +213-1.v: FAIL: invalid number of arguments: 4 214: PASS: RNG-ERROR 215: PASS +215-1.v: FAIL: invalid number of arguments: 4 +215-2.v: FAIL: invalid number of arguments: 4 216: PASS +216-1.i: FAIL: incorrect condition type: invalid number of arguments: 4 +216-2.v: FAIL: invalid number of arguments: 4 +216-3.v: FAIL: invalid number of arguments: 4 217: PASS +217-1.i: FAIL: incorrect condition type: invalid number of arguments: 4 +217-2.v: FAIL: invalid number of arguments: 4 218: PASS +218-1.v: FAIL: invalid number of arguments: 4 +218-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 219: PASS +219-1.i: FAIL: incorrect condition type: invalid number of arguments: 4 +219-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +219-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +219-4.v: FAIL: invalid number of arguments: 4 220: PASS +220-1.i: FAIL: incorrect condition type: invalid number of arguments: 4 +220-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +220-3.v: FAIL: invalid number of arguments: 4 221: PASS +221-1.i: FAIL: incorrect condition type: invalid number of arguments: 4 +221-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +221-3.v: FAIL: invalid number of arguments: 4 +221-4.v: FAIL: invalid number of arguments: 4 222: PASS +222-1.v: FAIL: invalid number of arguments: 4 +222-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +222-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +222-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 223: PASS +223-1.i: FAIL: incorrect condition type: invalid number of arguments: 4 +223-2.v: FAIL: invalid number of arguments: 4 +223-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +223-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 224: PASS +224-1.i: FAIL: incorrect condition type: invalid number of arguments: 4 +224-2.v: FAIL: invalid number of arguments: 4 +224-3.v: FAIL: invalid number of arguments: 4 225: PASS +225-1.v: FAIL: invalid number of arguments: 4 +225-2.v: FAIL: invalid number of arguments: 4 +225-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 226: PASS +226-1.v: FAIL: invalid number of arguments: 4 +226-2.v: FAIL: invalid number of arguments: 4 +226-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +226-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +226-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +226-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +226-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 227: PASS +227-1.v: FAIL: invalid number of arguments: 4 +227-2.v: FAIL: invalid number of arguments: 4 +227-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +227-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +227-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +227-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +227-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 228: PASS +228-1.v: FAIL: invalid number of arguments: 4 +228-2.v: FAIL: invalid number of arguments: 4 +228-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +228-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +228-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +228-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +228-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 229: PASS +229-1.v: FAIL: invalid number of arguments: 4 +229-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +229-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +229-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +229-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +229-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 230: PASS +230-1.v: FAIL: invalid number of arguments: 4 +230-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 231: PASS +231-1.v: FAIL: invalid number of arguments: 4 +231-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +231-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +231-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 232: PASS +232-1.v: FAIL: invalid number of arguments: 4 +232-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +232-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +232-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 233: PASS +233-1.v: FAIL: invalid number of arguments: 4 +233-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +233-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +233-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 234: PASS +234-1.v: FAIL: invalid number of arguments: 4 +234-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +234-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +234-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 235: PASS +235-1.v: FAIL: invalid number of arguments: 4 +235-2.v: FAIL: invalid number of arguments: 4 +235-3.v: FAIL: invalid number of arguments: 4 +235-4.v: FAIL: invalid number of arguments: 4 +235-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +235-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +235-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 236: PASS +236-1.v: FAIL: invalid number of arguments: 4 +236-2.v: FAIL: invalid number of arguments: 4 +236-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 237: PASS +237-1.v: FAIL: invalid number of arguments: 4 +237-2.v: FAIL: invalid number of arguments: 4 +237-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +237-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +237-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 238: PASS +238-1.v: FAIL: invalid number of arguments: 4 +238-2.v: FAIL: invalid number of arguments: 4 +238-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 239: PASS +239-1.v: FAIL: invalid number of arguments: 4 +239-2.v: FAIL: invalid number of arguments: 4 +239-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +239-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 240: PASS +240-1.v: FAIL: invalid number of arguments: 4 +240-2.v: FAIL: invalid number of arguments: 4 +240-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +240-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 241: PASS +241-1.v: FAIL: invalid number of arguments: 4 +241-2.v: FAIL: invalid number of arguments: 4 +241-3.v: FAIL: invalid number of arguments: 4 +241-4.v: FAIL: invalid number of arguments: 4 +241-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 242: PASS +242-1.v: FAIL: invalid number of arguments: 4 +242-2.v: FAIL: invalid number of arguments: 4 +242-3.v: FAIL: invalid number of arguments: 4 +242-4.v: FAIL: invalid number of arguments: 4 +242-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +242-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 243: PASS +243-1.v: FAIL: invalid number of arguments: 4 +243-2.v: FAIL: invalid number of arguments: 4 +243-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +243-4.v: FAIL: invalid number of arguments: 4 +243-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +243-6.v: FAIL: invalid number of arguments: 4 244: PASS +244-1.v: FAIL: invalid number of arguments: 4 +244-2.v: FAIL: invalid number of arguments: 4 +244-3.v: FAIL: invalid number of arguments: 4 +244-4.v: FAIL: invalid number of arguments: 4 +244-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +244-6.v: FAIL: invalid number of arguments: 4 +244-7.v: FAIL: invalid number of arguments: 4 +244-8.i: FAIL: incorrect condition type: invalid number of arguments: 4 245: PASS +245-1.v: FAIL: invalid number of arguments: 4 +245-2.v: FAIL: invalid number of arguments: 4 +245-3.v: FAIL: invalid number of arguments: 4 +245-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +245-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 246: PASS +246-1.v: FAIL: invalid number of arguments: 4 +246-2.v: FAIL: invalid number of arguments: 4 +246-3.v: FAIL: invalid number of arguments: 4 +246-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 247: PASS +247-1.v: FAIL: invalid number of arguments: 4 +247-2.v: FAIL: invalid number of arguments: 4 +247-3.v: FAIL: invalid number of arguments: 4 +247-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +247-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +247-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 248: PASS +248-1.v: FAIL: invalid number of arguments: 4 +248-2.v: FAIL: invalid number of arguments: 4 +248-3.v: FAIL: invalid number of arguments: 4 +248-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +248-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +248-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 249: PASS +249-1.v: FAIL: invalid number of arguments: 4 +249-2.v: FAIL: invalid number of arguments: 4 +249-3.v: FAIL: invalid number of arguments: 4 +249-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 250: PASS +250-1.v: FAIL: invalid number of arguments: 4 +250-2.v: FAIL: invalid number of arguments: 4 +250-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +250-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +250-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +250-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 251: PASS +251-1.v: FAIL: invalid number of arguments: 4 +251-2.v: FAIL: invalid number of arguments: 4 +251-3.v: FAIL: invalid number of arguments: 4 +251-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +251-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +251-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +251-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 +251-8.i: FAIL: incorrect condition type: invalid number of arguments: 4 252: PASS +252-1.v: FAIL: invalid number of arguments: 4 +252-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +252-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +252-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +252-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 253: PASS +253-1.v: FAIL: invalid number of arguments: 4 +253-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +253-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +253-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +253-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 254: PASS +254-1.v: FAIL: invalid number of arguments: 4 +254-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +254-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +254-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +254-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +254-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 255: PASS +255-1.v: FAIL: invalid number of arguments: 4 +255-2.v: FAIL: invalid number of arguments: 4 +255-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +255-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +255-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +255-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +255-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 256: PASS +256-1.v: FAIL: invalid number of arguments: 4 +256-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +256-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 257: PASS +257-1.v: FAIL: invalid number of arguments: 4 +257-2.v: FAIL: invalid number of arguments: 4 +257-3.v: FAIL: invalid number of arguments: 4 +257-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +257-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 258: PASS +258-1.v: FAIL: invalid number of arguments: 4 +258-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +258-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 259: PASS +259-1.v: FAIL: invalid number of arguments: 4 +259-2.v: FAIL: invalid number of arguments: 4 +259-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 260: PASS +260-1.i: FAIL: incorrect condition type: invalid number of arguments: 4 +260-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +260-3.v: FAIL: invalid number of arguments: 4 +260-4.v: FAIL: invalid number of arguments: 4 +260-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 261: PASS +261-1.v: FAIL: invalid number of arguments: 4 +261-2.v: FAIL: invalid number of arguments: 4 +261-3.v: FAIL: invalid number of arguments: 4 +261-4.v: FAIL: invalid number of arguments: 4 +261-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +261-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +261-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 262: PASS +262-1.v: FAIL: invalid number of arguments: 4 +262-2.v: FAIL: invalid number of arguments: 4 +262-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +262-4.v: FAIL: invalid number of arguments: 4 +262-5.v: FAIL: invalid number of arguments: 4 +262-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +262-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 +262-8.i: FAIL: incorrect condition type: invalid number of arguments: 4 263: PASS +263-1.v: FAIL: invalid number of arguments: 4 +263-2.v: FAIL: invalid number of arguments: 4 +263-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +263-4.v: FAIL: invalid number of arguments: 4 +263-5.v: FAIL: invalid number of arguments: 4 +263-6.v: FAIL: invalid number of arguments: 4 +263-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 +263-8.v: FAIL: invalid number of arguments: 4 264: PASS +264-1.v: FAIL: invalid number of arguments: 4 +264-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +264-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +264-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 265: PASS +265-1.v: FAIL: invalid number of arguments: 4 266: PASS +266-1.v: FAIL: invalid number of arguments: 4 267: PASS +267-1.i: FAIL: incorrect condition type: invalid number of arguments: 4 +267-2.v: FAIL: invalid number of arguments: 4 268: PASS +268-1.v: FAIL: invalid number of arguments: 4 +268-2.v: FAIL: invalid number of arguments: 4 +268-3.v: FAIL: invalid number of arguments: 4 +268-4.v: FAIL: invalid number of arguments: 4 +268-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +268-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 269: PASS +269-1.v: FAIL: invalid number of arguments: 4 +269-2.v: FAIL: invalid number of arguments: 4 +269-3.v: FAIL: invalid number of arguments: 4 +269-4.v: FAIL: invalid number of arguments: 4 +269-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +269-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 270: PASS +270-1.v: FAIL: invalid number of arguments: 4 +270-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +270-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +270-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 271: PASS +271-1.v: FAIL: invalid number of arguments: 4 +271-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +271-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +271-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 272: PASS +272-1.v: FAIL: invalid number of arguments: 4 +272-2.v: FAIL: invalid number of arguments: 4 +272-3.v: FAIL: invalid number of arguments: 4 +272-4.v: FAIL: invalid number of arguments: 4 +272-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +272-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 273: PASS +273-1.v: FAIL: invalid number of arguments: 4 +273-2.v: FAIL: invalid number of arguments: 4 +273-3.v: FAIL: invalid number of arguments: 4 +273-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 274: PASS +274-1.v: FAIL: invalid number of arguments: 4 +274-2.v: FAIL: invalid number of arguments: 4 +274-3.v: FAIL: invalid number of arguments: 4 +274-4.v: FAIL: invalid number of arguments: 4 +274-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 +274-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 275: PASS +275-1.v: FAIL: invalid number of arguments: 4 +275-2.v: FAIL: invalid number of arguments: 4 +275-3.v: FAIL: invalid number of arguments: 4 +275-4.v: FAIL: invalid number of arguments: 4 +275-5.v: FAIL: invalid number of arguments: 4 +275-6.i: FAIL: incorrect condition type: invalid number of arguments: 4 +275-7.i: FAIL: incorrect condition type: invalid number of arguments: 4 276: FAIL: didn't detect invalid schema 277: FAIL: didn't detect invalid schema 278: FAIL: didn't detect invalid schema 279: FAIL: didn't detect invalid schema 280: PASS +280-1.v: FAIL: invalid number of arguments: 4 +280-2.v: FAIL: invalid number of arguments: 4 +280-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 281: PASS +281-1.v: FAIL: invalid number of arguments: 4 +281-2.v: FAIL: invalid number of arguments: 4 +281-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +281-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 282: PASS +282-1.v: FAIL: invalid number of arguments: 4 +282-2.v: FAIL: invalid number of arguments: 4 +282-3.v: FAIL: invalid number of arguments: 4 +282-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 283: PASS +283-1.v: FAIL: invalid number of arguments: 4 +283-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +283-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 284: PASS +284-1.i: FAIL: incorrect condition type: invalid number of arguments: 4 285: FAIL: didn't detect invalid schema 286: FAIL: didn't detect invalid schema 287: FAIL: didn't detect invalid schema @@ -328,23 +835,36 @@ 326: FAIL: didn't detect invalid schema 327: FAIL: didn't detect invalid schema 328: PASS +328-1.v: FAIL: invalid number of arguments: 4 329: FAIL: didn't detect invalid schema 330: PASS +330-1.v: FAIL: invalid number of arguments: 4 331: PASS +331-1.v: FAIL: invalid number of arguments: 4 332: PASS +332-1.v: FAIL: invalid number of arguments: 4 333: PASS +333-1.v: FAIL: invalid number of arguments: 4 334: PASS +334-1.v: FAIL: invalid number of arguments: 4 335: FAIL: didn't detect invalid schema 336: PASS +336-1.v: FAIL: invalid number of arguments: 4 337: FAIL: didn't detect invalid schema 338: FAIL: didn't detect invalid schema 339: FAIL: didn't detect invalid schema 340: PASS +340-1.v: FAIL: invalid number of arguments: 4 341: FAIL: didn't detect invalid schema 342: FAIL: didn't detect invalid schema 343: FAIL: didn't detect invalid schema 344: FAIL: didn't detect invalid schema 345: PASS +345-1.v: FAIL: invalid number of arguments: 4 +345-2.v: FAIL: invalid number of arguments: 4 +345-3.i: FAIL: incorrect condition type: invalid number of arguments: 4 +345-4.i: FAIL: incorrect condition type: invalid number of arguments: 4 +345-5.i: FAIL: incorrect condition type: invalid number of arguments: 4 346: FAIL: didn't detect invalid schema 347: FAIL: didn't detect invalid schema 348: FAIL: didn't detect invalid schema @@ -353,8 +873,13 @@ 351: FAIL: didn't detect invalid schema 352: FAIL: didn't detect invalid schema 353: PASS +353-1.v: FAIL: invalid number of arguments: 4 +353-2.i: FAIL: incorrect condition type: invalid number of arguments: 4 +353-3.v: FAIL: invalid number of arguments: 4 354: PASS +354-1.v: FAIL: invalid number of arguments: 4 355: PASS +355-1.v: FAIL: invalid number of arguments: 4 356: FAIL: didn't detect invalid schema 357: FAIL: didn't detect invalid schema 358: FAIL: didn't detect invalid schema @@ -368,9 +893,13 @@ 366: FAIL: didn't detect invalid schema 367: FAIL: didn't detect invalid schema 368: PASS +368-1.v: FAIL: invalid number of arguments: 4 369: PASS +369-1.v: FAIL: invalid number of arguments: 4 370: FAIL: didn't detect invalid schema 371: FAIL: didn't detect invalid schema 372: PASS +372-1.v: FAIL: invalid number of arguments: 4 373: PASS -Passed 249/373 tests. +373-1.i: PASS: RNG-ERROR +Passed 250/902 tests. diff --git a/cxml-rng.asd b/cxml-rng.asd index aa0bf1b..b9bff3c 100644 --- a/cxml-rng.asd +++ b/cxml-rng.asd @@ -17,5 +17,6 @@ :components ((:file "package") (:file "parse") - (:file "validate")) + (:file "validate") + (:file "test")) :depends-on (:cxml :cl-ppcre)) diff --git a/parse.lisp b/parse.lisp index 14f3ce9..dfe50c3 100644 --- a/parse.lisp +++ b/parse.lisp @@ -1150,58 +1150,3 @@ (defmethod fold-empty ((pattern ref)) pattern) - - -;;;; tests - -(defun run-tests (&optional (p "/home/david/src/lisp/cxml-rng/spec-split/*")) - (dribble "/home/david/src/lisp/cxml-rng/TEST" :if-exists :rename-and-delete) - (let ((pass 0) - (total 0) - (*package* (find-package :cxml-rng))) - (dolist (d (directory p)) - (let ((name (car (last (pathname-directory d))))) - (when (parse-integer name :junk-allowed t) - (incf total) - (when (test1 d) - (incf pass))))) - (format t "Passed ~D/~D tests.~%" pass total)) - (dribble)) - -(defun run-test (n &optional (p "/home/david/src/lisp/cxml-rng/spec-split/")) - (test1 (merge-pathnames (format nil "~3,'0D/" n) p))) - -(defun parse-test (n &optional (p "/home/david/src/lisp/cxml-rng/spec-split/")) - (let* ((*debug* t) - (d (merge-pathnames (format nil "~3,'0D/" n) p)) - (i (merge-pathnames "i.rng" d)) - (c (merge-pathnames "c.rng" d)) - (rng (if (probe-file c) c i))) - (format t "~A: " (car (last (pathname-directory d)))) - (print rng) - (parse-relax-ng rng))) - -(defun test1 (d) - (let* ((i (merge-pathnames "i.rng" d)) - (c (merge-pathnames "c.rng" d))) - (format t "~A: " (car (last (pathname-directory d)))) - (if (probe-file c) - (handler-case - (progn - (parse-relax-ng c) - (format t " PASS~%") - t) - (error (c) - (format t " FAIL: ~A~%" c) - nil)) - (handler-case - (progn - (parse-relax-ng i) - (format t " FAIL: didn't detect invalid schema~%") - nil) - (rng-error (c) - (format t " PASS: ~S~%" (type-of c)) - t) - (error (c) - (format t " FAIL: incorrect condition type: ~A~%" c) - nil))))) diff --git a/test.lisp b/test.lisp new file mode 100644 index 0000000..e1c7b1b --- /dev/null +++ b/test.lisp @@ -0,0 +1,129 @@ +;;; -*- show-trailing-whitespace: t; indent-tabs: nil -*- +;;; +;;; Copyright (c) 2007 David Lichteblau. All rights reserved. + +;;; Redistribution and use in source and binary forms, with or without +;;; modification, are permitted provided that the following conditions +;;; are met: +;;; +;;; * Redistributions of source code must retain the above copyright +;;; notice, this list of conditions and the following disclaimer. +;;; +;;; * Redistributions in binary form must reproduce the above +;;; copyright notice, this list of conditions and the following +;;; disclaimer in the documentation and/or other materials +;;; provided with the distribution. +;;; +;;; THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESSED +;;; OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +;;; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +;;; ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +;;; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +;;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +;;; GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +;;; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +;;; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +;;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +(in-package :cxml-rng) + +(defun run-tests (&optional (p "/home/david/src/lisp/cxml-rng/spec-split/*")) + (dribble "/home/david/src/lisp/cxml-rng/TEST" :if-exists :rename-and-delete) + (let ((pass 0) + (total 0) + (*package* (find-package :cxml-rng))) + (dolist (d (directory p)) + (let ((name (car (last (pathname-directory d))))) + (when (parse-integer name :junk-allowed t) + (let ((xml (directory (merge-pathnames "*.xml" d)))) + (incf total (1+ (length xml))) + (multiple-value-bind (ok grammar) (test1 d) + (cond + (ok + (incf pass (1+ (run-validation-tests name grammar xml)))) + (t + (dolist (x xml) + (format t "~A-~D: FAIL: cannot run test~%" + name + (pathname-name x)))))))))) + (format t "Passed ~D/~D tests.~%" pass total)) + (dribble)) + +(defun run-validation-test + (m n &optional (p "/home/david/src/lisp/cxml-rng/spec-split/")) + (let ((d (merge-pathnames (format nil "~3,'0D/" m) p)) + (*break-on-signals* 'error)) + (run-validation-tests m + (nth-value 1 (test1 d)) + (list (let ((v (merge-pathnames + (format nil "~A.v.xml" n) + d))) + (if (probe-file v) + v + (merge-pathnames + (format nil "~A.i.xml" n) + d))))))) + +(defun run-validation-tests (name grammar tests) + (let ((pass 0)) + (dolist (x tests) + (format t "~A-~D: " name (pathname-name x)) + (flet ((doit () + (cxml:parse-file x (make-validator grammar)))) + (if (find #\v (pathname-name x)) + (handler-case + (progn + (doit) + (incf pass) + (format t "PASS~%")) + (error (c) + (format t "FAIL: ~A~%" c))) + (handler-case + (progn + (doit) + (format t "FAIL: didn't detect invalid document~%")) + (rng-error (c) + (incf pass) + (format t "PASS: ~A~%" (type-of c))) + (error (c) + (format t "FAIL: incorrect condition type: ~A~%" c)))))) + pass)) + +(defun run-test (n &optional (p "/home/david/src/lisp/cxml-rng/spec-split/")) + (test1 (merge-pathnames (format nil "~3,'0D/" n) p))) + +(defun parse-test (n &optional (p "/home/david/src/lisp/cxml-rng/spec-split/")) + (let* ((*debug* t) + (d (merge-pathnames (format nil "~3,'0D/" n) p)) + (i (merge-pathnames "i.rng" d)) + (c (merge-pathnames "c.rng" d)) + (rng (if (probe-file c) c i))) + (format t "~A: " (car (last (pathname-directory d)))) + (print rng) + (parse-relax-ng rng))) + +(defun test1 (d) + (let* ((i (merge-pathnames "i.rng" d)) + (c (merge-pathnames "c.rng" d))) + (format t "~A: " (car (last (pathname-directory d)))) + (if (probe-file c) + (handler-case + (let ((grammar (parse-relax-ng c))) + (format t " PASS~%") + (values t grammar)) + (error (c) + (format t " FAIL: ~A~%" c) + nil)) + (handler-case + (progn + (parse-relax-ng i) + (format t " FAIL: didn't detect invalid schema~%") + nil) + (rng-error (c) + (format t " PASS: ~S~%" (type-of c)) + t) + (error (c) + (format t " FAIL: incorrect condition type: ~A~%" c) + nil))))) -- 2.11.4.GIT