From: Alexandre Terrasa Date: Wed, 13 May 2015 23:28:11 +0000 (-0400) Subject: lib/standard/string: Fix nitunit of Text::format X-Git-Tag: v0.7.5~51^2~1 X-Git-Url: http://nitlanguage.org lib/standard/string: Fix nitunit of Text::format Since the code block was badly indented, it was not tested. Once the indentation corrected, nitunit found that the test was failing. So I corrected it. Signed-off-by: Alexandre Terrasa --- diff --git a/lib/standard/string.nit b/lib/standard/string.nit index 5c9b2ef..b859d69 100644 --- a/lib/standard/string.nit +++ b/lib/standard/string.nit @@ -851,8 +851,8 @@ abstract class Text # Gives the formatted string back as a Nit string with `args` in place # - # assert "This %1 is a %2.".format("String", "formatted String") == "This String is a formatted String" - # assert "\\%1 This string".format("String") == "\\%1 This string" + # assert "This %1 is a %2.".format("String", "formatted String") == "This String is a formatted String." + # assert "\\%1 This string".format("String") == "\\%1 This string" fun format(args: Object...): String do var s = new Array[Text] var curr_st = 0