diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2014-11-06 21:45:07 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2014-11-06 21:45:07 -0800 |
commit | e4821af3f8da05be6d631e2116d03abcc1a6e6cf (patch) | |
tree | c23d3b08a064320d6832181a18627a1662c736cf | |
parent | 6a16a4e007d557177de3b70afcfb6bc350cf6cd8 (diff) | |
download | mu-e4821af3f8da05be6d631e2116d03abcc1a6e6cf.tar.gz |
245 - sanity check for type table
-rw-r--r-- | mu.arc.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mu.arc.t b/mu.arc.t index ed267b27..53a91d8b 100644 --- a/mu.arc.t +++ b/mu.arc.t @@ -410,6 +410,14 @@ ; (see types* in mu.arc for the complete list of types; we'll add to it over ; time). +; first a sanity check that the table of types is consistent +(reset) +(each (typ typeinfo) types* + (when typeinfo!record + (assert (is typeinfo!size (len typeinfo!elems))) + (when typeinfo!fields + (assert (is typeinfo!size (len typeinfo!fields)))))) + (reset) (new-trace "get-record") (add-fns |