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.
I haven't used C# in a long time (this is a translation from 2 years ago), so I might be unaware of this, but does C# allow variable access outside of the function's scope, since that's the only reason that I could think of for this change to be necessary. Not to mention, adding the private modifier directly to the variable causes a compile time error, since (at least from what I can tell) you can't add access modifiers to variables inside a function's scope. Some further clarification would be gratefully appreciated.
Changed
Added the input into the assertion message, NUnit handles showing the actual and expected
should be
private int num
There's no need a reference solution, just store that line as
string expected = ...
Missing useful assertion messages
This comment is hidden because it contains spoiler information about the solution
Description states:
Hence:
0
]
. that is past the end.Given the 1-800 (phone word) number that the company wants to use, you need to check against all known words and return the set of all possible 1-800 numbers which can be formed using those same digits.
(In other words, groups of (3,4) and (4,3) should be both considered and not just following the original's string format)crazy, I cant even understand the code
(c#): IMHO the example test has still the typo:
Assert.AreEqual("abcde", Kata.Assemble(new string[] {"abcde","abcde","abcbe"}));
Approved by someone
OP solved it, closing
Approved
Swift translation does not perform the random tests, fixed in fork
Approved.
Make a function to generate random strings, then in the Male and Female catergories, add a random amount of random strings to each category
Yes, it's not supposed to work, Idk how they validated it!
You have to add brackets as follows :
See Microsoft's documentation about string interpolation using
$
Loading more items...