From f9257293164f7681243e35b9608a4cb6c2d3e16b Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 6 Nov 2017 09:12:06 -0500 Subject: checks --- org/output_sqlite.org | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'org/output_sqlite.org') diff --git a/org/output_sqlite.org b/org/output_sqlite.org index 4f5029e..0c5b222 100644 --- a/org/output_sqlite.org +++ b/org/output_sqlite.org @@ -1298,7 +1298,7 @@ string doc_text; foreach (part; doc_parts) { foreach (obj; doc_abstraction[part]) { switch (obj.of_part) { - case "frontmatter": assert(part == "head"); + case "frontmatter": assert(part == "head", part); switch (obj.is_of) { case "para": switch (obj.is_a) { @@ -1319,7 +1319,7 @@ foreach (part; doc_parts) { break; } break; - case "body": // assert(part == "body"); // TODO broken + case "body": // assert(part == "body", part); // TODO broken switch (obj.is_of) { case "para": switch (obj.is_a) { @@ -1378,26 +1378,26 @@ foreach (part; doc_parts) { } break; case "backmatter": - assert(part == "endnotes" || "glossary" || "bibliography" || "bookindex_scroll" || "blurb" || "tail"); + assert(part == "endnotes" || "glossary" || "bibliography" || "bookindex_seg" || "blurb" || "tail", part); switch (obj.is_of) { case "para": switch (obj.is_a) { case "heading": obj_txt = format_and_sqlite_load.heading(obj); break; - case "endnote": assert(part == "endnotes"); + case "endnote": assert(part == "endnotes", part); obj_txt = format_and_sqlite_load.para(obj); break; - case "glossary": assert(part == "glossary"); + case "glossary": assert(part == "glossary", part); obj_txt = format_and_sqlite_load.para(obj); break; - case "bibliography": assert(part == "bibliography"); + case "bibliography": assert(part == "bibliography", part); obj_txt = format_and_sqlite_load.para(obj); break; - case "bookindex": assert(part == "bookindex_scroll"); + case "bookindex": assert(part == "bookindex_seg", part); obj_txt = format_and_sqlite_load.para(obj); break; - case "blurb": assert(part == "blurb"); + case "blurb": assert(part == "blurb", part); obj_txt = format_and_sqlite_load.para(obj); break; default: -- cgit v1.2.3