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.
50 ppl completed C# with no problem ~~
But your output is a string, if I have 1e-6 accuracy test 2 and 4 fail and any greater accuracy all the other tests fail, also DEUS VULT!
Perhaps i should write "...rounding isn't necessary...";-) Was accuracy a problem to solve the kata - i think not, perhaps only a small correction in the description, 1e-6 or 1e-7 or...? that normally doesn't matter;-)... But thanks for your hint (and solution...), i will look for it laaater on;-)... By the way nice picture, hope you are well:-)
TestAndVerify2 and 4 required greater than 1e-6 accuracy, and the string output dooesnt help!
That's your personal opinion;-)... For me, it's enough...
Why? "...don't differ more than 1e-6 (precision) for each number...". Same tests for both (but haven't looked for details yet)?!
@smile67 Not a good enough reason for testing against string and double, string culture is a thing!
The random tests and the TestAndVerify tests inconsistently expect different accuracy! Also should return an array of double not a string!!!
thank you, I did not know that!
Hello, when you do a succession of
if
s like so, they ALL get tested! So at every loop of yourwhile
you perform 20 tests! The simplest way to save time is to make allif
s but the first else if. That way you compute 1 to 20 tests (you test until a test returns true). An even better solution here (the one that was thought for such cases) is the switch statement, which will ONLY perform one single test each loop!using C#:
"LL+W c>p>p<- W c>Y<- E>c>A<<<- E>>>N" and "LL+W c>p>p<- W are you trying to debug this? c>Y<- E>c>A<<<- E>>>N" expect "153" but I get "152",
"W>UQLIPNPPP45vSDFJLLIPNPqwVMT<E" expects "" but I get "\00\0\0\02",
"cW>LQQT+P<pE" expects "" but I get "!"
even when I do them on paper, is there something wrong with the tests?