X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ftests_structures%2Ftest_int_hash.cpp;h=1d6b205180fa14d8ae41b494a33a2b28ca0de535;hb=d7e8a05960951d8ce67e36c587726a851e2f5165;hp=7fb8c17d6aa21dcefbc5e90febef06a091fd0e5b;hpb=fa30e6adff1dea5d6b3903279ef024dd3bed043f;p=feisty_meow.git diff --git a/nucleus/library/tests_structures/test_int_hash.cpp b/nucleus/library/tests_structures/test_int_hash.cpp index 7fb8c17d..1d6b2051 100644 --- a/nucleus/library/tests_structures/test_int_hash.cpp +++ b/nucleus/library/tests_structures/test_int_hash.cpp @@ -278,7 +278,7 @@ bool test_int_hash::test_add() #undef UNIT_BASE_THIS_OBJECT #define UNIT_BASE_THIS_OBJECT (*dynamic_cast(application_shell::single_instance())) -int_hash *_hang_on = NIL; +int_hash *_hang_on = NULL_POINTER; // must be set before calling the apply method. bool test_int_hash::equivalence_applier(const int &key, data_shuttle &item, void *dlink) @@ -452,11 +452,11 @@ bool test_int_hash::test_find() _hits[FIND - FIRST_TEST]++; int rand_indy = randomizer().inclusive(0, _keys_in_use.elements() - 1); int find_key = _keys_in_use[rand_indy]; - data_shuttle *found = NIL; + data_shuttle *found = NULL_POINTER; ASSERT_TRUE(_the_table.find(functional_return(find_key), found), "key should be there when we look"); ASSERT_TRUE(_the_table.find(functional_return(find_key)), "find2: key be there when checked"); - ASSERT_TRUE(found, "when key is found contents should not be NIL"); + ASSERT_TRUE(found, "when key is found contents should not be null"); ASSERT_EQUAL(found->food_bar, find_key, "stored key should be same as real key"); ASSERT_TRUE(found->snacky_string.length(), "stored string should have some length"); return true; @@ -491,10 +491,10 @@ bool test_int_hash::test_find_zap_add() int rand_indy = randomizer().inclusive(0, _keys_in_use.elements() - 1); // this is another key list invariant function, if it works. int find_key = _keys_in_use[rand_indy]; - data_shuttle *found = NIL; + data_shuttle *found = NULL_POINTER; ASSERT_TRUE(_the_table.find(find_key, found), "key should be there when sought"); ASSERT_TRUE(_the_table.find(find_key), "find2: key should be there for us to find"); - ASSERT_TRUE(found, "found key should have non-NIL contents"); + ASSERT_TRUE(found, "found key should have non-null contents"); ASSERT_EQUAL(found->food_bar, find_key, "stored key should have no differences from real key"); ASSERT_TRUE(found->snacky_string.length(), "stored string should have non-zero length"); // zap.