Lines Matching refs:optional_int32
17 assert m.optional_int32 == 0
32 m.optional_int32 = -42
33 assert m.optional_int32 == -42
67 assert m.optional_int32 == -42
90 assert_equal 0, m.optional_int32
97 :child_msg => {sub_child: {optional_int32: 1}},
99 :repeated_msg => [{sub_child: {optional_int32: 3}}],
107 assert_equal m.child_msg.sub_child.optional_int32, 1
111 assert_equal 3, m.repeated_msg.first.sub_child.optional_int32
158 m.optional_int32 = "hello"
319 l3[0].optional_int32 = 1000
320 assert l[0].optional_int32 == 1000
325 new_msg.optional_int32 = 1000
326 assert l4[1].optional_int32 == 1000
525 assert m.values.map{|msg| msg.optional_int32}.sort == [42, 84]
664 m.optional_int32 = 42
673 m.optional_int32 += 1
910 m.optional_int32 = 0
911 m.optional_int32 = -0x8000_0000
912 m.optional_int32 = +0x7fff_ffff
913 m.optional_int32 = 1.0
914 m.optional_int32 = -1.0
915 m.optional_int32 = 2e9
917 m.optional_int32 = -0x8000_0001
920 m.optional_int32 = +0x8000_0000
923 m.optional_int32 = +0x1000_0000_0000_0000_0000_0000 # force Bignum
926 m.optional_int32 = 1e12
929 m.optional_int32 = 1.5
1016 m.optional_int32 = 42
1037 optional_int32 = msgdef.lookup "optional_int32"
1038 assert optional_int32.class == Google::Protobuf::FieldDescriptor
1039 assert optional_int32 != nil
1040 assert optional_int32.name == "optional_int32"
1041 assert optional_int32.type == :int32
1042 optional_int32.set(m, 5678)
1043 assert m.optional_int32 == 5678
1044 m.optional_int32 = 1000
1045 assert optional_int32.get(m) == 1000
1738 m.optional_int32 = 10
1741 frozen_error = assert_raise(FrozenErrorType) { m.optional_int32 = 20 }
1743 assert_equal 10, m.optional_int32
1782 m1.optional_int32 = 2