Permalink
Browse files

Added float field test.

  • Loading branch information...
1 parent bd8a2c8 commit 18b0d041004091dd1156dcf89fe511d2d2b77ac1 @bfontaine committed Feb 13, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/gdf_tests.rb
View
@@ -214,4 +214,11 @@ def test_unparse_big_int_gephi
assert_equal("nodedef>n INT\n9999999999999999\nedgedef>", gdf)
end
+
+ def test_unparse_float_field
+ g = Graph.new([{ 'n' => 3.14 }])
+ gdf = GDF::unparse(g)
+
+ assert_equal("nodedef>n FLOAT\n3.14\nedgedef>", gdf)
+ end
end

0 comments on commit 18b0d04

Please sign in to comment.