Skip to content

Commit

Permalink
updated bats tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdingliang committed Dec 3, 2021
1 parent c03c5e4 commit 2922ec9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_int_to_int_array.bats
Expand Up @@ -18,11 +18,11 @@ teardown() {
rm results0
}

@test "int=3 to int[0, 1, 2]" {
@test "int=3 to int[1, 2, 3]" {
echo 'number: 3' >> $ymlPath

cwltool ./SJARACNe/cwl/int_to_int_array.cwl $ymlPath | tr -d '\n' | tr -s " " | tee results3
run grep '0, 1, 2' results3
run grep '1, 2, 3' results3
[ "$status" -eq 0 ]
rm results3
}
2 changes: 1 addition & 1 deletion tests/test_int_to_str_array.bats
Expand Up @@ -13,7 +13,7 @@ teardown() {
@test "int to string array" {
echo 'number: 3' > $ymlPath
cwltool ./SJARACNe/cwl/int_to_str_array.cwl $ymlPath | tr -d "\n" | tr -s " " | tee results
run grep '"TF_run_000.adj", "TF_run_001.adj", "TF_run_002.adj"' results
run grep '"TF_run_001.adj", "TF_run_002.adj", "TF_run_003.adj"' results
[ "$status" -eq 0 ]
rm results
}

0 comments on commit 2922ec9

Please sign in to comment.