lib/standard/string: Fix nitunit of Text::format
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 13 May 2015 23:28:11 +0000 (19:28 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Wed, 13 May 2015 23:28:11 +0000 (19:28 -0400)
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 <alexandre@moz-code.org>

lib/standard/string.nit

index 5c9b2ef..b859d69 100644 (file)
@@ -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