nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
matrix: use a custom low-level C structure to avoid boxing of param types
[nit.git]
/
tests
/
test_string_is_numeric.nit
diff --git
a/tests/test_string_is_numeric.nit
b/tests/test_string_is_numeric.nit
index
aa02268
..
df648ee
100644
(file)
--- a/
tests/test_string_is_numeric.nit
+++ b/
tests/test_string_is_numeric.nit
@@
-25,7
+25,7
@@
print "45".is_numeric
#True
print "45.3".is_numeric
-#True
+#False
print "45,3".is_numeric
#False
@@
-52,7
+52,7
@@
print "585,210.52".is_numeric
#False
print "21,52,210.52".is_numeric
-var buf = new Buffer
+var buf = new FlatBuffer
buf.append("45.3")