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.
what about there being the Et-sign at the start of the string? When it appears like this, it isn't replaced?
Marking issue as resolved following the addition of the
RandomMagnaCartaTests
test class, containing three methods.Marking suggestion as resolved following the addition of the
FirstCharacterAndAmpersand()
test methd.Great spot, thank you! I have added Michalis to the description and updated the solution &
Clause_FiftyFour()
.What causes the this error?
Clause_FiftyFour
Test Failed
String lengths are both 1602. Strings differ at index 448.
Expected: "...fiat ad illum terminum sancti Michalis sine occasione, ita..."
But was: "...fiat ad illum terminum sancti michalis sine occasione, ita..."
--------------------------------------------^
the list with the words to capitalize contains "michaelis" and not "michalis"
As illustrated here & is a ligature of E and t, rather than e and t. Therefore, I believe it is appropriate to replace occurences of Et and et.
I like these designations for historical regions, individuals, or events."
Should the et-sign at the beginning of a sentence really be replaced by the &-sign?
https://learn.microsoft.com/en-gb/dotnet/standard/base-types/stringbuilder
hobovsky, try again. 😎
What if someone hardcodes a fixed test, and random tests do not generate this scenario? :) If this can happen, that is.
For example, I copied your solution, deleted the word "pasha" from the poper nouns array, hardcoded the only fixed test with the word "pasha", resubmitted a couple of times, and passed all random tests.
Each random test is enclosed in a for loop that runs 100 times.
I see what you mean, but my fixed tests already cover the introduction and all of the clauses of the document in question. The random tests are a good addition because they ensure that a solution cannot be hardcoded.
Random Tests
Hacky is fine. I've added a couple of randoms that variably test strings with ampersands. What do you think?
you should have 100, and keep in mind that random tests should optimally cover all types of tests including edge cases...
I've added two randoms. What do you think?
Loading more items...