mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 12:53:52 +00:00
18 lines
333 B
C++
18 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;
|
|
}
|