using namespace FileClassifier;

TEST( hashedStringTests, createAHash ) {
    HashedString str("hallo");

    ASSERT_STREQ( "hallo" , str.getString().c_str() );
}

TEST( hashedStringTests, hashIsUnique ) {
    HashedString str1("hallo");
    HashedString str2("hallo2");
    HashedString str3("hallo2");
    HashedString str4("Hallo2");

    ASSERT_NE( str1.getHashValue(), str2.getHashValue() );
    ASSERT_EQ( str2.getHashValue(), str3.getHashValue() );
    ASSERT_NE( str3.getHashValue(), str4.getHashValue() );
}

TEST( hashedStringTests, compareHashedString ) {
    HashedString str1("hallo");
    HashedString str2("hallo2");

    ASSERT_TRUE( str1 != str2 );
    ASSERT_TRUE( str1 == str1 );
}
