Sha256: b62012095df53323d89830c019a8ce7a7947052b01322776b78240a698700338
Contents?: true
Size: 650 Bytes
Versions: 8
Compression:
Stored size: 650 Bytes
Contents
require 'test/unit' require 'test/proto/lowercase.pb' class LowercaseTest < Test::Unit::TestCase def test_lowercase message = nil assert_nothing_raised { message = Test::LowerCase::LowerCamelCase::Baaz.new } assert_nothing_raised { message.x = Test::LowerCase::LowerCamelCase::Foo::Bar.new } assert_equal(Test::LowerCase::LowerCamelCase::Foo::Bar, message.get_field_by_name(:x).type) end def test_lowercased_enum_members klass = Test::LowerCase::LowerCamelCase::Baaaz assert_equal(0, klass::Abc) assert_equal(1, klass::Def) assert_equal(0, klass.values[:abc]) assert_equal(1, klass.values[:def]) end end
Version data entries
8 entries across 8 versions & 1 rubygems