Commit b1a8acb3 authored by Pontus Freyhult's avatar Pontus Freyhult
Browse files

Added tests for lsh_string_bubblebabble.

Rev: src/testsuite/string-test.c:1.3
parent 0f20ebb3
......@@ -40,10 +40,28 @@ test_main(void)
ASSERT(p && !*p) ;
s = S("colonize this");
s = lsh_string_colonize(s, 1, 1);
s = lsh_string_colonize( s, 1, 1);
p = lsh_get_cstring(s);
ASSERT(p && !strcmp(p, "c:o:l:o:n:i:z:e: :t:h:i:s")) ;
s = S("");
s = lsh_string_bubblebabble(s, 1);
p = lsh_get_cstring(s);
ASSERT(p && !strcmp(p, "xexax")) ;
s = S("1234567890");
s = lsh_string_bubblebabble(s, 1);
p = lsh_get_cstring(s);
ASSERT(p && !strcmp(p, "xesef-disof-gytuf-katof-movif-baxux")) ;
s = S("Pineapple");
s = lsh_string_bubblebabble(s, 1);
p = lsh_get_cstring(s);
ASSERT(p && !strcmp(p, "xigak-nyryk-humil-bosek-sonax")) ;
SUCCESS();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment