ToastFreeware
/
debian
/
mimetic.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Change Section to debug for libmimetic0-dbg.
[debian/mimetic.git]
/
test
/
t.find_bm.cxx
1
#include "t.find_bm.h"
2
using namespace mimetic;
3
/*
4
* test fields:
5
* input: text, pattern, offset returned or strlen(text) if not found
6
* (i.e. return end iterator-->the first char after the end)
7
*
8
*/
9
const struct test_find_bm::test_s test_find_bm::test[] = {
10
{ "a", "a", 0 },
11
{ "a", "b", 1 },
12
{ "a", "ab", 1 },
13
{ "ab", "a", 0 },
14
{ "ab", "b", 1 },
15
{ "ab", "c", 2 },
16
{ "abc", "abc", 0 },
17
{ "abc", "ab", 0 },
18
{ "abc", "bc", 1 },
19
{ "abc", "d", 3 },
20
{ "abc", "ddd", 3 },
21
{ "abc", "dddd", 3 },
22
{ "abcd", "d", 3 },
23
{ "abcd", "cd", 2 },
24
{ 0, 0, 0 }
25
};