Permalink
Browse files

Make the test more consistent

  • Loading branch information...
Andy Chu
Andy Chu committed Aug 11, 2017
1 parent a7c03b4 commit 439a44a9e13527ed69240391bbc3b2f867b03849
Showing with 6 additions and 6 deletions.
  1. +6 −6 spec/type-compat.test.sh
View
@@ -23,14 +23,14 @@ echo "$s|$i|$j"
### append in arith context
declare s
(( s=1 ))
(( s+=2 )) # arith add
(( s='1 '))
(( s+=' 2 ')) # arith add
declare -i i
(( i=1 ))
(( i+=2 ))
(( i='1 ' ))
(( i+=' 2 ' ))
declare -i j
(( j=x )) # treated like zero
(( j+=2 ))
(( j='x ' )) # treated like zero
(( j+=' 2 ' ))
echo "$s|$i|$j"
# stdout: 3|3|2

0 comments on commit 439a44a

Please sign in to comment.