public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
test nested hash with float

[#652 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Dan Barry (author)
Sun Oct 12 13:40:00 -0700 2008
jeremy (committer)
Sun Oct 12 14:24:05 -0700 2008
commit  0d4dbb3dfaec8355e072d8f758de40a277f2f009
tree    effb481de6b844b4b18b4ac3539b60596a2c066f
parent  cb45ee344d5ec6974b78dc593e4eaef2101e3d42
...
100
101
102
 
 
 
 
 
 
 
 
 
 
 
 
103
104
105
...
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
0
@@ -100,6 +100,18 @@ class TestJSONEncoding < Test::Unit::TestCase
0
     ActiveSupport.use_standard_json_time_format = false
0
   end
0
 
0
+  def test_nested_hash_with_float
0
+    assert_nothing_raised do
0
+      hash = {
0
+        "CHI" => {
0
+          :dislay_name => "chicago",
0
+          :latitude => 123.234
0
+        }
0
+      }
0
+      result = hash.to_json
0
+    end
0
+  end
0
+
0
   protected
0
 
0
     def object_keys(json_object)

Comments