We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 7fbfecf commit 4bbe06eCopy full SHA for 4bbe06e
test/ipfs-test-lib.sh
@@ -22,3 +22,16 @@ test_sort_cmp() {
22
sort "$2" >"$2_sorted" &&
23
test_cmp "$1_sorted" "$2_sorted"
24
}
25
+
26
+# Depending on GNU seq availability is not nice.
27
+# Git also has test_seq but it uses Perl.
28
+test_seq() {
29
+ test "$1" -le "$2" || return
30
+ i="$1"
31
+ j="$2"
32
+ while test "$i" -le "$j"
33
+ do
34
+ echo "$i"
35
+ i=$(expr "$i" + 1)
36
+ done
37
+}
0 commit comments