Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The fixed tests are only the most basic "happy flow" tests that don't check for error cases such as:
/
and%
with0
as second argument (division/modulo by0
)-1
and123456
=
with0
/1
stack items, or:
with an empty stack~
when input is already exhausted (0
is not mappable to a string in languages where strings are0
-terminated).They're 80% similar but the command set has a few differences.
(But then, lots of esolang interpreter katas are really very similar to each other. A good spot to farm kata authoring points...)
There are no random tests.
It is not specified what value should be fall back to when reading past all inputs/popping from empty stack. (it's
0
)It is also not specified how "integer" and "character" are converted between each other. (it's character code)
Here's a fork that fixes both of those issues, plus another one where the random tests use the result of the user's solution for the input
Ruby should be upgraded to 3.0
input
is used after being potentially mutated by a soluiton. One of consequences is confusing assertion messages.approved, but note that the assertion message crashes if the user returns
null
(super minor issue)C# translation (author inactive)
Ruby: No random tests.
Don't forget .sort on your result
duplicate of https://www.codewars.com/kata/befunge-interpreter
Use
[text](url)
What if there's more than three of a given number?...
sorry, my bad.
Everything is ok with that!
Loading more items...