✅ Codes runs as expected, but Unit Test keeps failing
This is the unit test that keeps the helper methods from evaluating to green
And this is the only error message provided

18 Replies
looks like your file
TesetGomoku.csv
has a column named 1, 0, 0, 0
, which can't be mapped to a property value. check that the CSV is not invalidUnknown User•17h ago
Message Not Public
Sign In & Join Server To View
SavedGame class
No;Row;Col;Player
1;0;0;0
2;1;1;1
3;2;2;0
4;3;3;1
5;4;4;0
6;5;5;1
This is the csv file that is used to test the whole program
The save and load game methods also work without any issues
Unknown User•16h ago
Message Not Public
Sign In & Join Server To View
The professor wrote the unit test, probably forgot “;” is used as separator and not “,”
Unknown User•16h ago
Message Not Public
Sign In & Join Server To View
Thanks, will do
Unknown User•16h ago
Message Not Public
Sign In & Join Server To View
We’ve never used it before
Unknown User•16h ago
Message Not Public
Sign In & Join Server To View
Till now we’ve used normal arrays or jagged to solve these type of CSV assignments
It was never said we’re not allowed to
Unknown User•16h ago
Message Not Public
Sign In & Join Server To View
I’ve only sticked to the way we were taught, because that’s how we’ll be tested during exams
And the unit tests are designed in such a way that you can use things we are supposed to know
(To prevent people from cheating)
Unknown User•16h ago
Message Not Public
Sign In & Join Server To View
I know what the problem might be, I’ll look into it tomorrow, thanks a lot
Unknown User•16h ago
Message Not Public
Sign In & Join Server To View
I found what the mistake was. It was the header.
Everytime the game state was saved, I saved it without adding the header
No;Row;Col;Player <-- culprit
1;0;0;0
2;1;1;1
3;2;2;0
4;3;3;1
5;4;4;0
6;5;5;1
I just added the header first and when im loading the game, I start iterating from i = 1 to skip the header
@TeBeCo @viceroypenguin Thanks for helping
🤙
