Loading tests/assignment-3/a3-task3.bats +2 −2 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ setup() { } teardown() { find ./ -iname 'file[0-9]*' -type f -delete find ./ -maxdepth 1 -iname 'file[0-9]*' -type f -delete } @test "[TASK 3] test 1: should create 150 files with correct content" { Loading @@ -14,7 +14,7 @@ teardown() { [ "$status" -eq 0 ] # Ensure the script exits successfully # Check that 150 files were created file_count=$(find ./ -iname 'file[0-9]*' -type f | wc -l) file_count=$(find ./ -maxdepth 1 -iname 'file[0-9]*' -type f | wc -l) [ "$file_count" -eq 150 ] # Verify each file contains its respective number Loading Loading
tests/assignment-3/a3-task3.bats +2 −2 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ setup() { } teardown() { find ./ -iname 'file[0-9]*' -type f -delete find ./ -maxdepth 1 -iname 'file[0-9]*' -type f -delete } @test "[TASK 3] test 1: should create 150 files with correct content" { Loading @@ -14,7 +14,7 @@ teardown() { [ "$status" -eq 0 ] # Ensure the script exits successfully # Check that 150 files were created file_count=$(find ./ -iname 'file[0-9]*' -type f | wc -l) file_count=$(find ./ -maxdepth 1 -iname 'file[0-9]*' -type f | wc -l) [ "$file_count" -eq 150 ] # Verify each file contains its respective number Loading