Lines Matching refs:assert_equal

33     assert_equal -10, m.repeated_int32.first
34 assert_equal -1_000_000, m.repeated_int64.first
35 assert_equal 10, m.repeated_uint32.first
36 assert_equal 1_000_000, m.repeated_uint64.first
37 assert_equal true, m.repeated_bool.first
38 assert_equal -1.01, m.repeated_float.first.round(2)
39 assert_equal -1.0000000000001, m.repeated_double.first
40 assert_equal 'foo', m.repeated_string.first
41 assert_equal "bar".encode!('ASCII-8BIT'), m.repeated_bytes.first
42 assert_equal TestMessage2.new(:foo => 1), m.repeated_msg.first
43 assert_equal :A, m.repeated_enum.first
53 assert_equal -11, m.repeated_int32.last
54 assert_equal -1_000_001, m.repeated_int64.last
55 assert_equal 11, m.repeated_uint32.last
56 assert_equal 1_000_001, m.repeated_uint64.last
57 assert_equal false, m.repeated_bool.last
58 assert_equal -1.02, m.repeated_float.last.round(2)
59 assert_equal -1.0000000000002, m.repeated_double.last
60 assert_equal 'bar', m.repeated_string.last
61 assert_equal "foo".encode!('ASCII-8BIT'), m.repeated_bytes.last
62 assert_equal TestMessage2.new(:foo => 2), m.repeated_msg.last
63 assert_equal :B, m.repeated_enum.last
74 assert_equal -11, m.repeated_int32.pop
75 assert_equal -10, m.repeated_int32.pop
76 assert_equal -1_000_001, m.repeated_int64.pop
77 assert_equal -1_000_000, m.repeated_int64.pop
78 assert_equal 11, m.repeated_uint32.pop
79 assert_equal 10, m.repeated_uint32.pop
80 assert_equal 1_000_001, m.repeated_uint64.pop
81 assert_equal 1_000_000, m.repeated_uint64.pop
82 assert_equal false, m.repeated_bool.pop
83 assert_equal true, m.repeated_bool.pop
84 assert_equal -1.02, m.repeated_float.pop.round(2)
85 assert_equal -1.01, m.repeated_float.pop.round(2)
86 assert_equal -1.0000000000002, m.repeated_double.pop
87 assert_equal -1.0000000000001, m.repeated_double.pop
88 assert_equal 'bar', m.repeated_string.pop
89 assert_equal 'foo', m.repeated_string.pop
90 assert_equal "foo".encode!('ASCII-8BIT'), m.repeated_bytes.pop
91 assert_equal "bar".encode!('ASCII-8BIT'), m.repeated_bytes.pop
92 assert_equal TestMessage2.new(:foo => 2), m.repeated_msg.pop
93 assert_equal TestMessage2.new(:foo => 1), m.repeated_msg.pop
94 assert_equal :B, m.repeated_enum.pop
95 assert_equal :A, m.repeated_enum.pop
101 assert_equal ['bar', 'foo'], m.repeated_string.pop(2)
111 assert_equal 'string', val
114 assert_equal 5, count
116 assert_equal ['string'] * 5, result
122 assert_equal true, m.repeated_string.empty?
124 assert_equal false, m.repeated_string.empty?
126 assert_equal false, m.repeated_string.empty?
173 assert_equal ["foo", "snappy", "baz", "", "", "spacious"], m.repeated_string
178 assert_equal [0,0,0,10], m.send(field_name)
182 assert_equal [0,0,0], m.repeated_float.to_a[0..2]
183 assert_equal 10.1, m.repeated_float[3].round(1)
185 assert_equal [0,0,0,10.1], m.repeated_double
187 assert_equal [false, false, false, true], m.repeated_bool
189 assert_equal ['', '', '', "bar".encode!('ASCII-8BIT')], m.repeated_bytes
191 assert_equal [nil, nil, nil, TestMessage2.new(:foo => 1)], m.repeated_msg
193 assert_equal [:Default, :Default, :Default, :A], m.repeated_enum
239 assert_equal %w(foo bar baz fizz buzz), m.repeated_string
250 assert_equal reference_arr, m.repeated_string
254 assert_equal reference_arr, m.repeated_string
264 assert_equal hash, m.repeated_string.hash
415 assert_equal '[]', m.repeated_string.inspect
417 assert_equal m.repeated_string.to_a.inspect, m.repeated_string.inspect
419 assert_equal m.repeated_string.to_a.inspect, m.repeated_string.inspect
479 assert_equal m.repeated_string, result
565 assert_equal expected_result.to_a, actual_result.to_a
567 assert_equal expected_result, actual_result
569 assert_equal ref_array, repeated_field