nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/core: handling of plus (+) sign when using to_i with Text objects
[nit.git]
/
lib
/
core
/
text
/
abstract_text.nit
diff --git
a/lib/core/text/abstract_text.nit
b/lib/core/text/abstract_text.nit
index
fbe045f
..
06989ef
100644
(file)
--- a/
lib/core/text/abstract_text.nit
+++ b/
lib/core/text/abstract_text.nit
@@
-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`