to_add->snacky_string = string_manipulation::make_random_name();
to_add->food_bar = random_id;
outcome expected = common::IS_NEW;
- if (_keys_in_use.member(random_id)) return common::EXISTING;
+ // make sure it doesn't exist already.
+ if (_keys_in_use.member(random_id)) return false;
ASSERT_EQUAL(_the_table.add(random_id, to_add).value(), expected.value(),
"add should give proper outcome based on expectation");
if (_keys_in_use.member(random_id))
HOOPLE_MAIN(test_hash_table, )
+
! -iname "*.xls" \
! -iname "*.xlsx" \
! -iname "*.zip" \) \
- -exec echo "\"{}\"" ';' | xargs grep -li -- "$seek" | grep -v "^\.[^\/]\|\/\."
+ -exec echo "\"{}\"" ';' | xargs grep -li --binary-files=without-match -- "$seek" | grep -v "^\.[^\/]\|\/\."
+
+# first grep looks in every valid file for the pattern requested.
+# second grep strains out dot files.
+#hmmm: why are we doing that second step?
+