blob: 7e5d0ec6b727d771dd0cea82f52eb275a1eedb60 [file] [log] [blame]
Rob Widmer1d39f782021-01-08 11:54:47 -05001#!/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