aboutsummaryrefslogtreecommitdiff
path: root/tests/storycode_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/storycode_test.c')
-rw-r--r--tests/storycode_test.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/storycode_test.c b/tests/storycode_test.c
index 4ff4977..4ffc08c 100644
--- a/tests/storycode_test.c
+++ b/tests/storycode_test.c
@@ -32,6 +32,19 @@
int main(int argc, char *argv[])
{
+ SCBlockList *bl;
+ SCBlockListIterator *iter;
+ char *b;
+
+ bl = sc_find_blocks("\\bg{wibble \\f{wobble}}\\bg{rwawr}Wobble", "bg");
+
+ for ( b = sc_block_list_first(bl, &iter);
+ b != NULL;
+ b = sc_block_list_next(bl, iter) )
+ {
+ printf("'%s'\n", b);
+ }
+ sc_block_list_free(bl);
return 0;
}