add rabin min error test
License: MIT Signed-off-by: Kejie Zhang <601172892@qq.com>
Kejie Zhang committed
Sep 12, 2018 at 14:12 UTC
bc2e325e5cbcf25b708c84e87fa91e4fe00b5c56
1 file changed
+9
test/sharness/t0040-add-and-cat.sh
+9
@@ -156,6 +156,15 @@ test_add_cat_file() {
156
test_cmp expected actual
157
'
158
159
+ test_expect_success "ipfs add --chunker rabin-36-512-1024 succeeds" '
160
+ ipfs add --chunker rabin-36-512-1024 mountdir/hello.txt >actual
161
+ '
162
+
163
+ test_expect_failure "ipfs add --chunker rabin-12-512-1024 failed" '
164
+ ipfs add --chunker rabin-12-512-1024 mountdir/hello.txt >actual
165
+ '
166
+
167
+
168
test_expect_success "ipfs add on hidden file succeeds" '
169
echo "Hello Worlds!" >mountdir/.hello.txt &&
170
ipfs add mountdir/.hello.txt >actual