Merge commit '36bca61764984ff5395653cf8377ec5daa71b709' as 'libs/protobuf'
This commit is contained in:
20
libs/protobuf/ruby/tests/multi_level_nesting_test.rb
Normal file
20
libs/protobuf/ruby/tests/multi_level_nesting_test.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/ruby
|
||||
|
||||
# multi_level_nesting_test_pb.rb is in the same directory as this test.
|
||||
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
|
||||
|
||||
require 'test/unit'
|
||||
require 'multi_level_nesting_test_pb'
|
||||
|
||||
#
|
||||
# Provide tests for having messages nested 3 levels deep
|
||||
#
|
||||
class MultiLevelNestingTest < Test::Unit::TestCase
|
||||
|
||||
def test_levels_exist
|
||||
assert ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Function").msgclass
|
||||
assert ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Function.Parameter").msgclass
|
||||
assert ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Function.Parameter.Value").msgclass
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user