From 2922ec9a57d3da4e88b849b840643f543f49807c Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 2 Dec 2021 18:19:04 -0600 Subject: [PATCH] updated bats tests --- tests/test_int_to_int_array.bats | 4 ++-- tests/test_int_to_str_array.bats | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_int_to_int_array.bats b/tests/test_int_to_int_array.bats index 414dd41..f56250d 100755 --- a/tests/test_int_to_int_array.bats +++ b/tests/test_int_to_int_array.bats @@ -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 } diff --git a/tests/test_int_to_str_array.bats b/tests/test_int_to_str_array.bats index bed79e6..e53b1aa 100755 --- a/tests/test_int_to_str_array.bats +++ b/tests/test_int_to_str_array.bats @@ -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 }