-
Notifications
You must be signed in to change notification settings - Fork 4
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
Forth: Problem with "ttester.fs with extension for Codewars" #10
Comments
Stack order in testcase has bottom of stack to the left, and top of stack to the right, as is customary in Forth. In the reporting, the top of the stack is reported first, then below items are shown. This might confuse some people. Therefore change the reporting such that the bottom of the stack is reported first, then items above it are shown. The result will be that the order of reporting is the same as the left-right order of the test case. |
Will that enhancement correct the swap of actual and expected when result or test are wrong? |
Yes, it will display them "swapped" as you say. |
Thanks but I think it is not installed yet because I still have some problems. |
I'll close this when #11 is deployed. |
Deployed |
Replying to comment of @g964
See #8
That can happen in case there's a stack depth mismatch, i.e. a mismatch in the number of arguments. In that case the user has a lot more to worry about than knowing the time it took the code to run to completion... |
It happens even if there is no stack mismatch and the test succeeds. |
I don't see that when running tests. If you experience an issue with timing info, please open a new issue for that. |
About a function "buddy" that returns two numbers on the stack.
In each case input is:
23 4669
. Correct answer is:48 75
.The text was updated successfully, but these errors were encountered: