python new test frameworks
Python new test framework should be used (Refer this & this for more detail)
Ruby 3.0 should be enabled (Refer this & this for more detail)
In my opinion the examples do not cover all cases in a minimal way.
What should return super_pad("abcde", 2, fill="^ ")?
super_pad("abcde", 2, fill="^ ")
"ab", "bc", "cd" or "de" ?
Description and examples are incomplete about how to handle centered padding.
That's surprising to pad input to the right by default when most of languages pad it to the left. Also > traditionally means right-paded (i.e paded to the right) and < means left-paded (i.e paded to the left).
>
<
You could add a testcase, where padding style is ^ and width is lower than the length of the given string.
Loading collection data...
python new test frameworks
Python new test framework should be used (Refer this & this for more detail)
Ruby 3.0 should be enabled (Refer this & this for more detail)
In my opinion the examples do not cover all cases in a minimal way.
What should return
super_pad("abcde", 2, fill="^ ")
?Description and examples are incomplete about how to handle centered padding.
That's surprising to pad input to the right by default when most of languages pad it to the left.
Also
>
traditionally means right-paded (i.e paded to the right) and<
means left-paded (i.e paded to the left).You could add a testcase, where padding style is ^ and width is lower than the length of the given string.