not used
[ghsmtp.git] / iequal-test.cpp
blob877a01ec7aa645e39762871cff48376ca8fa6074
1 #include "iequal.hpp"
3 #include <string>
5 #include <glog/logging.h>
7 int main(int argc, char* argv[])
9 CHECK(iequal("", ""));
10 CHECK(!iequal("a", ""));
11 CHECK(!iequal("", "b"));
13 CHECK(iequal("string", "StRiNg"));
14 CHECK(!iequal("NOT string", "string"));
16 CHECK(istarts_with("FooBarBaz", "foo"));
17 CHECK(iends_with("FooBarBaz", "baz"));
19 CHECK(istarts_with("foo", "Foo"));
20 CHECK(iends_with("Bar", "bar"));
22 CHECK(!istarts_with("foo", "foobarbaz"));
23 CHECK(!iends_with("FooBarBaz", "bbaz"));