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.
Kata already present in codewars
There could be more test cases so we can verify our progress while we work on this kata.
This kata is a duplicate and either needs to introduce a defining factor or be unpublished.
Thanks, my first time on kata, I just experienced it on Python the other day
That's not the way to write tests.
Try
Test.assertEquals(romanize(42), "XLII");
Then, for the random tests, define your own
_romanize
function in the tests box andTest.assertEquals(romanize(n), _romanize(n));
Also, take
romanize
out of Preloaded. That's not what it's for.This comment is hidden because it contains spoiler information about the solution
I assume you were not aware there are already many of these kinds of Kata?
https://www.codewars.com/kata/search?q=Roman+Numeral