about summary refs log tree commit diff stats
path: root/cpp/016compare
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-13 17:57:30 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-13 17:57:30 -0700
commitf7051fadd90af17820df750d448dc35ea63690e3 (patch)
tree90e0a42805cc74938c3ebb2c4437edf81137a666 /cpp/016compare
parent781f24623374b5657cec6e408549d2a74ec94399 (diff)
downloadmu-f7051fadd90af17820df750d448dc35ea63690e3.tar.gz
901
Diffstat (limited to 'cpp/016compare')
-rw-r--r--cpp/016compare5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/016compare b/cpp/016compare
index 9a97911f..57f70279 100644
--- a/cpp/016compare
+++ b/cpp/016compare
@@ -3,6 +3,7 @@
 const int EQUAL = 13;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["equal"] = EQUAL;
+assert(Next_recipe_number == EQUAL);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case EQUAL: {
@@ -49,6 +50,7 @@ recipe main [
 const int GREATER_THAN = 14;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["greater-than"] = GREATER_THAN;
+assert(Next_recipe_number == GREATER_THAN);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case GREATER_THAN: {
@@ -97,6 +99,7 @@ recipe main [
 const int LESSER_THAN = 15;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["lesser-than"] = LESSER_THAN;
+assert(Next_recipe_number == LESSER_THAN);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case LESSER_THAN: {
@@ -145,6 +148,7 @@ recipe main [
 const int GREATER_OR_EQUAL = 16;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["greater-or-equal"] = GREATER_OR_EQUAL;
+assert(Next_recipe_number == GREATER_OR_EQUAL);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case GREATER_OR_EQUAL: {
@@ -207,6 +211,7 @@ recipe main [
 const int LESSER_OR_EQUAL = 17;
 :(before "End Primitive Recipe Numbers")
 Recipe_number["lesser-or-equal"] = LESSER_OR_EQUAL;
+assert(Next_recipe_number == LESSER_OR_EQUAL);
 Next_recipe_number++;
 :(before "End Primitive Recipe Implementations")
 case LESSER_OR_EQUAL: {