You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Works fine
0>** EDN.read("1.0M")
=> 1.0
Works fine
0>** EDN.read("[ 1M ]")
=> [1]
Error: M parsed as separate element
0> EDN.read("[ 1.0M ]")
=> [1.0, M]
Error: M parsed as separate element
0> EDN.read("{10.0M}")
=> {10.0=>M}
Error: M parsed as separate element
0> EDN.read("{:value 10.0M}")
=> Need an even number of items for a map`
The text was updated successfully, but these errors were encountered:
Output of edn vs. edn + edn_turbo using ruby 2.4.1:
[1] pry(main)> require 'edn'
=> true
[2] pry(main)> EDN.read("1.0M")
=> 1.0
[3] pry(main)> EDN.read("[ 1M ]")
=> [1]
[4] pry(main)> EDN.read("[ 1.0M ]")
=> [1.0, #<EDN::Type::Symbol:0x007fb9639c4950 @symbol=:M>]
[5] pry(main)> EDN.read("{10.0M}")
=> {10.0=>#<EDN::Type::Symbol:0x007fb96396f7c0 @symbol=:M>}
[6] pry(main)> EDN.read("{:value 10.0M}")
RuntimeError: Need an even number of items for a map
[7] pry(main)> require 'edn_turbo'
=> true
[8] pry(main)> EDN.read("1.0M")
=> 0.1e1
[9] pry(main)> EDN.read("[ 1M ]")
=> [1]
[10] pry(main)> EDN.read("[ 1.0M ]")
=> [0.1e1]
[11] pry(main)> EDN.read("{10.0M}")
Parse error (odd number of elements in map) on line 1
[12] pry(main)> EDN.read("{:value 10.0M}")
=> {:value=>0.1e2}```
Not sure if [9] is correct or if it should match the output of [10], however.
Works fine
0>** EDN.read("1.0M")
=> 1.0
Works fine
0>** EDN.read("[ 1M ]")
=> [1]
Error: M parsed as separate element
0> EDN.read("[ 1.0M ]")
=> [1.0, M]
Error: M parsed as separate element
0> EDN.read("{10.0M}")
=> {10.0=>M}
Error: M parsed as separate element
0> EDN.read("{:value 10.0M}")
=> Need an even number of items for a map`
The text was updated successfully, but these errors were encountered: