Rob Widmer | 1d39f78 | 2021-01-08 11:54:47 -0500 | [diff] [blame] | 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 | |
| 6 | require 'test/unit' |
| 7 | require 'multi_level_nesting_test_pb' |
| 8 | |
| 9 | # |
| 10 | # Provide tests for having messages nested 3 levels deep |
| 11 | # |
| 12 | class 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 | |
| 20 | end |