nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
all: fix broken docunits
[nit.git]
/
lib
/
json
/
dynamic.nit
diff --git
a/lib/json/dynamic.nit
b/lib/json/dynamic.nit
index
d15ceb7
..
2f73fea
100644
(file)
--- a/
lib/json/dynamic.nit
+++ b/
lib/json/dynamic.nit
@@
-74,8
+74,8
@@
class JsonValue
#
# require: `self.is_numeric`
#
#
# require: `self.is_numeric`
#
- # assert "1.234".to_json_value.to_numeric = 1.234
- # assert "1234".to_json_value.to_numeric = 1234
+ # assert "1.234".to_json_value.to_numeric == 1.234
+ # assert "1234".to_json_value.to_numeric == 1234
fun to_numeric: Numeric
do
if is_int then return to_i
fun to_numeric: Numeric
do
if is_int then return to_i