<commit_before>. ./test/helper.sh

function test_gem_path_push()
{
	local dir="$HOME"
	local expected_dir="$dir/.gem/$test_ruby_engine/$test_ruby_version"

	gem_path --push "$dir"

	assertEquals "did not set \$GEM_HOME correctly" "$GEM_HOME" \
		                                        "$expected_dir"
}

SHUNIT_PARENT=$0 . $SHUNIT2
<commit_msg>Added asserts for GEM_PATH and PATH.<commit_after>. ./test/helper.sh

function test_gem_path_push()
{
	local dir="$HOME"
	local expected_dir="$dir/.gem/$test_ruby_engine/$test_ruby_version"
	local original_path="$PATH"
	local original_gem_path="$GEM_PATH"

	gem_path --push "$dir"

	assertEquals "did not set \$GEM_HOME correctly" "$GEM_HOME" \
		                                        "$expected_dir"

	assertEquals "did not prepend to \$GEM_PATH" "$GEM_PATH" \
		                                     "$expected_dir:$original_gem_path"

	assertEquals "did not prepend bin/ to \$PATH" "$PATH" \
		                                      "$expected_dir/bin:$original_path"
}

SHUNIT_PARENT=$0 . $SHUNIT2

{'fraction_non_alphanumeric': 0.12320916905444126, 'fraction_numerical': 0.0038204393505253103, 'mean_word_length': 2.5050167224080266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '871101', 'n_tokens_mistral': 352, 'n_tokens_neox': 323, 'n_words': 68}