mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00

* Replace protobuf 2.6.1 with 3.21.8 * Update/add protobuf libs * Add CS2 protos * Remove old csgo/dota protos * Add versioned protoc bin * Comment out Valve's `schema` define for now * Use ENetworkDisconnectionReason * Fix-up `offsetof` to avoid errors on some Clang versions
21 lines
651 B
Ruby
21 lines
651 B
Ruby
#!/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
|