Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Nov 1, 2019
1 parent ec3d065 commit 5ff17ec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test
Original file line number Diff line number Diff line change
Expand Up @@ -386,3 +386,13 @@ com=./opy
result=$( a=3.14; b="aho aho" ; $com -s -v "x=$a" -v "y=$b" 'B:[x*2, y*2]' )
[ "$result" = "3.143.14 aho ahoaho aho" ]
}

@test "null separator" {
result=$( echo 123 | $com -i "" '[F2*2]' )
[ "$result" = "4" ]
}

@test "null separator on string mode" {
result=$( echo 123 | $com -s -i "" '[F2*2]' )
[ "$result" = "22" ]
}

0 comments on commit 5ff17ec

Please sign in to comment.