Skip to content

Commit 3c3a9c9

Browse files
committedOct 3, 2015
t0100: swap test_cmp arguments
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
1 parent 7e69146 commit 3c3a9c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎test/sharness/t0100-name.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test_expect_success "'ipfs name publish' succeeds" '
2020

2121
test_expect_success "publish output looks good" '
2222
echo "Published to ${PEERID}: /ipfs/$HASH_WELCOME_DOCS" >expected1 &&
23-
test_cmp publish_out expected1
23+
test_cmp expected1 publish_out
2424
'
2525

2626
test_expect_success "'ipfs name resolve' succeeds" '
@@ -29,7 +29,7 @@ test_expect_success "'ipfs name resolve' succeeds" '
2929

3030
test_expect_success "resolve output looks good" '
3131
printf "/ipfs/%s" "$HASH_WELCOME_DOCS" >expected2 &&
32-
test_cmp output expected2
32+
test_cmp expected2 output
3333
'
3434

3535
# now test with a path
@@ -42,7 +42,7 @@ test_expect_success "'ipfs name publish' succeeds" '
4242

4343
test_expect_success "publish a path looks good" '
4444
echo "Published to ${PEERID}: /ipfs/$HASH_WELCOME_DOCS/help" >expected3 &&
45-
test_cmp publish_out expected3
45+
test_cmp expected3 publish_out
4646
'
4747

4848
test_expect_success "'ipfs name resolve' succeeds" '
@@ -51,7 +51,7 @@ test_expect_success "'ipfs name resolve' succeeds" '
5151

5252
test_expect_success "resolve output looks good" '
5353
printf "/ipfs/%s/help" "$HASH_WELCOME_DOCS" >expected4 &&
54-
test_cmp output expected4
54+
test_cmp expected4 output
5555
'
5656

5757
# publish with an explicit node ID

0 commit comments

Comments
 (0)
Please sign in to comment.