Skip to content

Commit 84fa6b0

Browse files
committed
t/op/reverse.t: add a test for single character reversal
This could help detect implementation bugs in algorithms for reverse copying from a source buffer to a different destination buffer.
1 parent d002fa4 commit 84fa6b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

t/op/reverse.t

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ BEGIN {
66
set_up_inc('../lib');
77
}
88

9-
plan tests => 25;
9+
plan tests => 26;
10+
11+
is(reverse("a"), "a", 'single char reverse');
1012

1113
is(reverse("abc"), "cba", 'simple reverse');
1214

0 commit comments

Comments
 (0)