Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a result file with bug fixed #17

Open
loicknuchel opened this issue Oct 17, 2018 · 3 comments
Open

Provide a result file with bug fixed #17

loicknuchel opened this issue Oct 17, 2018 · 3 comments

Comments

@loicknuchel
Copy link
Contributor

As mentionned in instructions-intermediate.md, there is some bugs/problems with the code :

  • A player that get's into prison always stays there
  • bug with the money attribution, coins are added to the wrong player
  • typo (corrent instead of correct)

Fixing theses will break the test, so it could be good to have a file with the correct output so we can switch on it when they are fixed

@martinsson
Copy link
Owner

martinsson commented Oct 17, 2018 via email

@loicknuchel
Copy link
Contributor Author

Ok, I see. As I didn't use the ApprovalTests in Scala, it was very painful to see the diffs, so we used the test only as red/green indicator.
We missed a source of truth with fixed bugs so we fixed them only when it was very easy: loicknuchel@48d7ca1

I think having a result file with all bugs fixed don't prevent people to fix them one by one and validate at the end with it.

@martinsson
Copy link
Owner

That's an interesting experiment to try out. If you'll have the opportunity to try it out in scala I can merge the corresponding MR. But I'd like to try an experiment in one language and perhaps improve it before generalising the concept. What do you think?

One thing about it though is that the files will be language specific, because even the same seed to the randomizer will produce different results. Not a problem of course we'd just need files in each language directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants