mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
19 lines
333 B
C++
19 lines
333 B
C++
|
#include <assert.h>
|
||
|
|
||
|
#include "../stringops.h"
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
assert(begins("abc", "a"));
|
||
|
assert(begins("abc", "ab"));
|
||
|
assert(begins("abc", "abc"));
|
||
|
assert(begins("abcd", "abc"));
|
||
|
|
||
|
assert(!begins("abc", "b"));
|
||
|
assert(!begins("abc", "bc"));
|
||
|
assert(!begins("abc", "bcd"));
|
||
|
assert(!begins("abc", "abcd"));
|
||
|
|
||
|
return 0;
|
||
|
}
|