summaryrefslogtreecommitdiff
path: root/ruby/test_case.rb
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:10:02 +0000
committerfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:10:02 +0000
commita114f4a5a5136a24f46bb52ffef1d1f588ba94e1 (patch)
treeb5f5a3319ec12a90f9ee5296ce91410d7346ba68 /ruby/test_case.rb
parent81a771094d2c54437ca20c3c09a5c8f05f81d0c5 (diff)
downloadmsgpack-python-a114f4a5a5136a24f46bb52ffef1d1f588ba94e1.tar.gz
update pack/unpack routines
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@100 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
Diffstat (limited to 'ruby/test_case.rb')
-rw-r--r--ruby/test_case.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/ruby/test_case.rb b/ruby/test_case.rb
index af6d160..1e2d474 100644
--- a/ruby/test_case.rb
+++ b/ruby/test_case.rb
@@ -75,6 +75,13 @@ class MessagePackTestFormat < Test::Unit::TestCase
check 9, -(1<<63)
end
+ it "double" do
+ check 9, 1.0
+ check 9, 0.1
+ check 9, -0.1
+ check 9, -1.0
+ end
+
it "fixraw" do
check_raw 1, 0
check_raw 1, (1<<5)-1