From bc2e325e5cbcf25b708c84e87fa91e4fe00b5c56 Mon Sep 17 00:00:00 2001 From: Kejie Zhang <601172892@qq.com> Date: Wed, 12 Sep 2018 14:12:38 +0800 Subject: [PATCH] add rabin min error test License: MIT Signed-off-by: Kejie Zhang <601172892@qq.com> --- test/sharness/t0040-add-and-cat.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/sharness/t0040-add-and-cat.sh b/test/sharness/t0040-add-and-cat.sh index bd60140f5..2e83f767a 100755 --- a/test/sharness/t0040-add-and-cat.sh +++ b/test/sharness/t0040-add-and-cat.sh @@ -156,6 +156,15 @@ test_add_cat_file() { test_cmp expected actual ' + test_expect_success "ipfs add --chunker rabin-36-512-1024 succeeds" ' + ipfs add --chunker rabin-36-512-1024 mountdir/hello.txt >actual + ' + + test_expect_failure "ipfs add --chunker rabin-12-512-1024 failed" ' + ipfs add --chunker rabin-12-512-1024 mountdir/hello.txt >actual + ' + + test_expect_success "ipfs add on hidden file succeeds" ' echo "Hello Worlds!" >mountdir/.hello.txt && ipfs add mountdir/.hello.txt >actual