The argument exception is one, which signals an exception with one of the method arguments. It usually recevies the argument name ('nameof(...)') in addition to the message.
A little more formatting would make your solution a lot more readable :)
C# TestCases the values of "Expected" and the returned values are switched.
E.G.: It shows "expected 75, but was 100", when should show "expected 100, but was 75"
The test class is called StairsTest and has two tests called Test2. The second of the Test2 methods does not have a sharp number, as -1 and 1 both appear 2 times, but the assert expects 1 as the result. Deleting that test allows one to submit.
When i get Wikipedia right, the system is additive, and there are letters for numbers up to 10000 which can be repeated 4 times. So it is ↂↂↂↂↁↁↁↁMMMM... so the highest roman number with letters used nowadays is 66666
Lol neat...
Lmao
The argument exception is one, which signals an exception with one of the method arguments. It usually recevies the argument name ('nameof(...)') in addition to the message.
A little more formatting would make your solution a lot more readable :)
XD
Fixed.
i love that one linebreak. because the line would be too long otherwise
C# TestCases the values of "Expected" and the returned values are switched.
E.G.: It shows "expected 75, but was 100", when should show "expected 100, but was 75"
has the test-issue been resolved?
your solution catched my eye just by looking at the line-count :D
The Test case function for case 2 has been duplicated but not renamed. Please rename the second function to case 3.
What if there is more than one sharp number?
The test class is called StairsTest and has two tests called Test2. The second of the Test2 methods does not have a sharp number, as -1 and 1 both appear 2 times, but the assert expects 1 as the result. Deleting that test allows one to submit.
It is not clearly defined what should happen when there are multiple candidates for a sharp number inside of the array.
When i get Wikipedia right, the system is additive, and there are letters for numbers up to 10000 which can be repeated 4 times. So it is ↂↂↂↂↁↁↁↁMMMM... so the highest roman number with letters used nowadays is 66666