call out non-ASCII
[ghsmtp.git] / Pill-test.cpp
bloba3c0bb010f4d834af154127ab9240fec524733a2
1 #include "Pill.hpp"
3 #include <iostream>
4 #include <string.h>
6 #include <glog/logging.h>
8 int main(int argc, char* argv[])
10 Pill red, blue;
11 CHECK(red != blue);
13 std::stringstream red_str, blue_str;
15 red_str << red;
16 blue_str << blue;
18 CHECK_NE(red_str.str(), blue_str.str());
20 CHECK_EQ(13U, red_str.str().length());
21 CHECK_EQ(13U, blue_str.str().length());
23 Pill red2(red);
24 CHECK_EQ(red, red2);
26 std::cout << "sizeof(Pill) == " << sizeof(Pill) << '\n';
27 std::cout << red << '\n' << blue << '\n';