Added tests for case_insensitive_equals and case_insensitive_hash
This commit is contained in:
parent
ec63c4345e
commit
cc15aac704
1 changed files with 9 additions and 0 deletions
|
|
@ -105,6 +105,15 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
case_insensitive_equals equals;
|
||||||
|
assert(equals("Test", "tesT"));
|
||||||
|
assert(equals("tesT", "test"));
|
||||||
|
assert(!equals("test", "tset"));
|
||||||
|
case_insensitive_hash hash;
|
||||||
|
assert(hash("Test")==hash("tesT"));
|
||||||
|
assert(hash("tesT")==hash("test"));
|
||||||
|
assert(hash("test")!=hash("tset"));
|
||||||
|
|
||||||
ServerTest serverTest;
|
ServerTest serverTest;
|
||||||
serverTest.io_service=std::make_shared<asio::io_service>();
|
serverTest.io_service=std::make_shared<asio::io_service>();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue