100 Days of Code Day 97
I decided to start with python exercises that used to pass but no longer do. Then moved on to ruby. Then C#. Then found I was missing some solutions that are hiding in Latest Test Status = Failed but don’t show up in Test Status Failed. Any way I went over a ton of them.
- Python\Largest Series Product failed not because I wasn’t throwing exceptions at the right places but because the messages now have required values that don’t match.
- Python\Roman Numerals. Change required modifying the largest possible number from 3,000 to 3,999.
- Python\Secret Handshake they started passing in a string instead of a number. Need to convert it back to a base 2 number to fix it.
- Python\Saddle Points – had to change the message on an exception.
- Python\Perfect Numbers – just a error message change
- Python\Say – wasn’t actually broken.
- Ruby\word_count – fix the regular expression to not allow leading/trailing apostrophe
- Ruby\Acronym – fix the regular expression don’t allow _’s or split on apostrophe
- C#\ParallelLetterFrequency – I was doing something parallel but they want an async await now.
- C#\Wizard and Warrior 2 – Needed to rerun the tests
- C#\Face ID 2 – Needed to rerun the tests
- Python\Pythagorean Triplet. It was slow and timing out. Optimized it more to 8 s which should be within spec but still fails. Eventually I swiped someone else’s solution. I had it working they just won’t take the answer in reasonable time.
- Python\Book Store – Looks like a timeout again. I ported the C# version over to Python. That evil robot sure said I had a lot of PEP standards problems.
- Python\Currency Exchange – They added a new function and broke the test runner in the process. I guess if I am missing functions pyTest fails in an obtuse way.
- Python\Robot Simulator – Bearing renamed direction, and Simulate renamed to Move
- Python\Markdown – Behavior of Header numbers greater than 6 changed. Previously just topped out at 6, now it needs to not match and be a paragraph. Funny thing is the UI still insisted it passed the tests but the published section said different.
- Python\Nth Prime – They now check for zero as a prime. I was returning an error but had to change it to their message and break out zero separately.
- Python\DOT_DSL – They changed some error messages and added a test for non-None non-List input
There are still five more in Latest Test Status = Failed group but I am tired for the day.