diff options
author | Isaiah Peng <issaria@gmail.com> | 2014-12-24 15:48:41 +0100 |
---|---|---|
committer | Isaiah Peng <issaria@gmail.com> | 2015-03-10 23:14:08 +0100 |
commit | 27e2b57830c328b83286e055752bf92790587953 (patch) | |
tree | 6cf4de2cbcb24d53b2475ed15d6a61a98712685c /ruby/tests | |
parent | a5f7bb8ebb60d636c21c18ad2ffeda80e8f80a48 (diff) | |
download | protobuf-27e2b57830c328b83286e055752bf92790587953.tar.gz protobuf-27e2b57830c328b83286e055752bf92790587953.tar.bz2 protobuf-27e2b57830c328b83286e055752bf92790587953.zip |
add jruby support by protobuf-java reflection API
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 |