Loading tests/assignment-3/a3-task5.bats +2 −2 Original line number Diff line number Diff line Loading @@ -12,12 +12,12 @@ setup() { @test "[TASK 5] test 2: should display time correctly" { run bash -c "echo -e '2\nE' | ./task-5.sh" assert_output --partial "$(date +"%T - %Z")" assert_output --partial "$(date +"%T")" } @test "[TASK 5] test 3: should display username correctly" { run bash -c "echo -e '3\nE' | ./task-5.sh" assert_output --partial "Username: ${USER}" assert_output --partial "${USER}" } @test "[TASK 5] test 4: should handle invalid input" { Loading Loading
tests/assignment-3/a3-task5.bats +2 −2 Original line number Diff line number Diff line Loading @@ -12,12 +12,12 @@ setup() { @test "[TASK 5] test 2: should display time correctly" { run bash -c "echo -e '2\nE' | ./task-5.sh" assert_output --partial "$(date +"%T - %Z")" assert_output --partial "$(date +"%T")" } @test "[TASK 5] test 3: should display username correctly" { run bash -c "echo -e '3\nE' | ./task-5.sh" assert_output --partial "Username: ${USER}" assert_output --partial "${USER}" } @test "[TASK 5] test 4: should handle invalid input" { Loading