-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Ledger
tests run differently locally and on the test runner
#49
Comments
Ah yes, I think you have found an issue in the tests, as they all use "\n": https://github.com/exercism/fsharp/blob/main/exercises/practice/ledger/LedgerTests.fs We have two options:
I have a slightly preference for the latter, which we can implement via an append file: https://exercism.org/docs/building/tracks/practice-exercises#h-file-docs-instructions-append-md Would you be interested in submitting a PR for that? |
@ErikSchierboom Are you sure it is only a Thank you so much for your help on this! |
Hmmm, I'm not entirely sure. It is the most plausible explanation, but maybe there is different cause. Could you post your code? |
Should be fixed in exercism/fsharp#1045 |
@ErikSchierboom Now I'm seeing some very interesting behavior. In the last line of my solution I call If I instead call I'm honestly drawing a blank at how 8 tests could suddenly pass when I trim the header line 🥴 |
That's very weird! |
My solution passes all tests (un-skipped, unmodified) locally. On the test runner, only 1 test passes. And on the test runner, I get different results (only 2 failures) if I
.Trim()
the header line of the ledger. But the remaining failures have weird whitespace differences still on various lines. I'm not sure what the differences are, but it seems like there are different whitespace expectations on the test runner than on the unit tests file.The text was updated successfully, but these errors were encountered: