<commit_before>#include <gtest/gtest.h>

extern "C" {
#  include "exe_in_path.c"
};

TEST(exe_in_path, TestNull)
{
   ASSERT_EQ(false, exe_in_path(NULL));
}

TEST(exe_in_path, TestEmptyString)
{
   ASSERT_EQ(false, exe_in_path(""));
}

TEST(exe_in_path, TestLS)
{
   ASSERT_EQ(true, exe_in_path("ls"));
}

TEST(exe_in_path, TestNotInPath)
{
   ASSERT_EQ(false, exe_in_path("SomethingDefinitelyNotInPath"));
}

TEST(exe_in_path, TestRandomChars)
{
   ASSERT_EQ(false, exe_in_path("*!03/;]asdf$FOO"));
}

TEST(exe_in_path, TestOpenQuote)
{
   ASSERT_EQ(false, exe_in_path("'"));
}
<commit_msg>unit tests s/ASSERT/EXPECT/ where appropriate<commit_after>#include <gtest/gtest.h>

extern "C" {
#  include "exe_in_path.c"
};

TEST(exe_in_path, TestNull)
{
   EXPECT_EQ(false, exe_in_path(NULL));
}

TEST(exe_in_path, TestEmptyString)
{
   EXPECT_EQ(false, exe_in_path(""));
}

TEST(exe_in_path, TestLS)
{
   EXPECT_EQ(true, exe_in_path("ls"));
}

TEST(exe_in_path, TestNotInPath)
{
   EXPECT_EQ(false, exe_in_path("SomethingDefinitelyNotInPath"));
}

TEST(exe_in_path, TestRandomChars)
{
   EXPECT_EQ(false, exe_in_path("*!03/;]asdf$FOO"));
}

TEST(exe_in_path, TestOpenQuote)
{
   EXPECT_EQ(false, exe_in_path("'"));
}

{'fraction_non_alphanumeric': 0.1672158154859967, 'fraction_numerical': 0.0032948929159802307, 'mean_word_length': 6.689873417721519, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7351090', 'n_tokens_mistral': 562, 'n_tokens_neox': 546, 'n_words': 64}