Function with test cases for Horspool's algorithm.
100 {
101 assert(strings::horspool::horspool("Hello World","World") == true);
102 assert(strings::horspool::horspool("Hello World"," World") == true);
103 assert(strings::horspool::horspool("Hello World","ello") == true);
104 assert(strings::horspool::horspool("Hello World","rld") == true);
105 assert(strings::horspool::horspool("Hello","Helo") == false);
106 assert(strings::horspool::horspool("c++_algorithms","c++_algorithms") == true);
107 assert(strings::horspool::horspool("c++_algorithms","c++_") == true);
108 assert(strings::horspool::horspool("Hello","Hello World") == false);
109 assert(strings::horspool::horspool("c++_algorithms","") == false);
110 assert(strings::horspool::horspool("c++","c") == true);
111 assert(strings::horspool::horspool("3458934793","4793") == true);
112 assert(strings::horspool::horspool("3458934793","123") == false);
113}