diff options
author | Chris Fallin <cfallin@c1f.net> | 2015-03-10 16:17:20 -0700 |
---|---|---|
committer | Chris Fallin <cfallin@c1f.net> | 2015-03-10 16:17:20 -0700 |
commit | 9861c0d796f254f5575638e1c520db9d723b4fa3 (patch) | |
tree | 6cf4de2cbcb24d53b2475ed15d6a61a98712685c /ruby/tests | |
parent | a5f7bb8ebb60d636c21c18ad2ffeda80e8f80a48 (diff) | |
parent | 27e2b57830c328b83286e055752bf92790587953 (diff) | |
download | protobuf-9861c0d796f254f5575638e1c520db9d723b4fa3.tar.gz protobuf-9861c0d796f254f5575638e1c520db9d723b4fa3.tar.bz2 protobuf-9861c0d796f254f5575638e1c520db9d723b4fa3.zip |
Merge pull request #146 from isaiah/jruby
protobuf support for jruby
Diffstat (limited to 'ruby/tests')
-rw-r--r-- | ruby/tests/basic.rb | 2 | ||||
-rw-r--r-- | ruby/tests/stress.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ruby/tests/basic.rb b/ruby/tests/basic.rb index a78cc394..9d0f0a98 100644 --- a/ruby/tests/basic.rb +++ b/ruby/tests/basic.rb @@ -972,6 +972,7 @@ module BasicTest end def test_json + skip("Unimplemented") if RUBY_PLATFORM == "java" m = TestMessage.new(:optional_int32 => 1234, :optional_int64 => -0x1_0000_0000, :optional_uint32 => 0x8000_0000, @@ -994,6 +995,7 @@ module BasicTest end def test_json_maps + skip("Unimplemented") if RUBY_PLATFORM == "java" m = MapMessage.new(:map_string_int32 => {"a" => 1}) expected = '{"map_string_int32":{"a":1},"map_string_msg":{}}' assert MapMessage.encode_json(m) == expected diff --git a/ruby/tests/stress.rb b/ruby/tests/stress.rb index 1bd768ed..082d5e22 100644 --- a/ruby/tests/stress.rb +++ b/ruby/tests/stress.rb @@ -30,7 +30,7 @@ module StressTest 100_000.times do mnew = TestMessage.decode(data) mnew = mnew.dup - assert mnew.inspect == m.inspect + assert_equal mnew.inspect, m.inspect assert TestMessage.encode(mnew) == data end end |