lib/core: handling of plus (+) sign when using to_i with Text objects
[nit.git] / lib / core / text / abstract_text.nit
index fbe045f..06989ef 100644 (file)
@@ -253,6 +253,7 @@ abstract class Text
        # assert "0x64".to_i       == 100
        # assert "0b1100_0011".to_i== 195
        # assert "--12".to_i       == 12
+       # assert "+45".to_i        == 45
        # ~~~
        #
        # REQUIRE: `self`.`is_int`