Loading test/tests/exercise-1/e1-task5.bats +3 −0 Original line number Diff line number Diff line Loading @@ -18,11 +18,14 @@ setup() { @test "[TASK 5] test 3: should print 'User not found' for input 'root1'" { run ./task-5.sh <<< "root1" assert_output --partial 'User not found' } @test "[TASK 5] test 4: should print 'User nobody found' for input 'nobody'" { run ./task-5.sh <<< "nobody" assert_output --partial 'User nobody found' } @test "[TASK 5] test 5: should print 'User not found' for input 'function'" { run ./task-5.sh <<< "function" assert_output --partial 'User not found' } Loading
test/tests/exercise-1/e1-task5.bats +3 −0 Original line number Diff line number Diff line Loading @@ -18,11 +18,14 @@ setup() { @test "[TASK 5] test 3: should print 'User not found' for input 'root1'" { run ./task-5.sh <<< "root1" assert_output --partial 'User not found' } @test "[TASK 5] test 4: should print 'User nobody found' for input 'nobody'" { run ./task-5.sh <<< "nobody" assert_output --partial 'User nobody found' } @test "[TASK 5] test 5: should print 'User not found' for input 'function'" { run ./task-5.sh <<< "function" assert_output --partial 'User not found' }