That's stated in the note.
123.045.067.089 is a perfectly valid IP Address, but is listed in the description as an invalid IP Addresss.
None of the test cases test for an IP that starts with
Can pass as Valid when it should not.
My Apologies, in C
"" IS a valid IP
When infact the Kata test considers this as invalid. The error message says it's Valid and causes confusion. The error message should read either:
"" IS NOT valid IP
"" IS valid IP, act = False, submitted = TRUE
Or something like that, In my Opinion
This comment is hidden because it contains spoiler information about the solution
It should have atleast told me in the interpreter :p haha
Don't worry, we've all had our D'oh! moments.
will check, been a long day 🤣 How noob of me :( thank you for pointing that out, I was so fixated on the filter_var function.
Input value: $str
The var you used in your code: $ip
When you use the same, it works.
let me check again, If I add the correct variable, see if it passes
The tests are ok, fix your code, you're not using the input value in your code.