Commit 620a5dae authored by Giannis Kepas's avatar Giannis Kepas
Browse files

less strict a3t5 tests

parent 3bd1f8e8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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" {