xref: /aosp_15_r20/external/protobuf/ruby/tests/multi_level_nesting_test.rb (revision 1b3f573f81763fcece89efc2b6a5209149e44ab8)
1#!/usr/bin/ruby
2
3# multi_level_nesting_test_pb.rb is in the same directory as this test.
4$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
5
6require 'test/unit'
7require 'multi_level_nesting_test_pb'
8
9#
10# Provide tests for having messages nested 3 levels deep
11#
12class MultiLevelNestingTest < Test::Unit::TestCase
13
14  def test_levels_exist
15    assert ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Function").msgclass
16    assert ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Function.Parameter").msgclass
17    assert ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Function.Parameter.Value").msgclass
18  end
19
20end
21