Problem getting all tests to pass, Number Guessing Project, Relational Database Certification

I do not understand why this test is not passing, everything seems to run correctly.

Here is a screenshot of a run:

Test that will not pass:

“Until they guess the secret number, it should print It's lower than that, guess again: if the previous input was higher than the secret number, and It's higher than that, guess again: if the previous input was lower than the secret number. Asking for input each time until they input the secret number.”

GitHub-repo:

There’s probably some improvements that need to be made here @simonliaboe. The tests input -1 and 1001 to ensure it sees both messages. That could be explained better or perhaps the test needs to be changed. I changed your regex on line 25 and it passed.

My Solution

if [[ $GUESS =~ ^-?[0-9]+$ ]]