X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=nucleus%2Flibrary%2Ftests_structures%2Ftest_amorph.cpp;h=17998dd8deb0e4fc1a7dc4319fece6fec7d041be;hb=de0da7f2f7958d4ba652ff2ef5c79991700141ac;hp=e5dfb1ca5e01fa65dd5ee66283fbe6b10eab0a75;hpb=457b128b77b5b4a0b7dd3094de543de2ce1477ad;p=feisty_meow.git diff --git a/nucleus/library/tests_structures/test_amorph.cpp b/nucleus/library/tests_structures/test_amorph.cpp index e5dfb1ca..17998dd8 100644 --- a/nucleus/library/tests_structures/test_amorph.cpp +++ b/nucleus/library/tests_structures/test_amorph.cpp @@ -207,7 +207,7 @@ int t_amorph::test_byte_array_amorph() LOG("before fred creation"); chaos randomizer; amorph fred(MAX_LIMBS - 1); - fred.append(NIL); // add one to make it max limbs big. + fred.append(NULL_POINTER); // add one to make it max limbs big. LOG("after append nil"); { for (int i = 0; i < fred.elements(); i++) { @@ -265,11 +265,11 @@ int t_amorph::test_byte_array_amorph() LOG("done unpacking in test_amorph"); ASSERT_TRUE(compare(fred, *new_fred), "first pack test, amorphs not the same"); abyte *cont1 - = (new_fred->get(14)? (*new_fred)[14]->access() : (abyte *)"NIL"); + = (new_fred->get(14)? (*new_fred)[14]->access() : (abyte *)"NULL_POINTER"); abyte *cont2 - = (new_fred->get(20)? (*new_fred)[20]->access() : (abyte *)"NIL"); + = (new_fred->get(20)? (*new_fred)[20]->access() : (abyte *)"NULL_POINTER"); abyte *cont3 - = (new_fred->get(36)? (*new_fred)[36]->access() : (abyte *)"NIL"); + = (new_fred->get(36)? (*new_fred)[36]->access() : (abyte *)"NULL_POINTER"); if (cont1) LOG(astring(astring::SPRINTF, "14: %s", cont1)); if (cont2) LOG(astring(astring::SPRINTF, "20: %s", cont2)); @@ -514,6 +514,7 @@ int test_amorph_of(const contents &bogus) } } } + return 0; } int t_amorph::execute()