• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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