Lines Matching refs:tests
14 } tests[] = {
26 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
28 range.set_first_byte_position(tests[i].first_byte_position);
29 range.set_last_byte_position(tests[i].last_byte_position);
30 range.set_suffix_length(tests[i].suffix_length);
31 EXPECT_EQ(tests[i].valid, range.IsValid());
44 } tests[] = {
58 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) {
60 range.set_first_byte_position(tests[i].first_byte_position);
61 range.set_last_byte_position(tests[i].last_byte_position);
62 range.set_suffix_length(tests[i].suffix_length);
64 bool return_value = range.ComputeBounds(tests[i].instance_size);
65 EXPECT_EQ(tests[i].expected_return_value, return_value);
67 EXPECT_EQ(tests[i].expected_lower_bound, range.first_byte_position());
68 EXPECT_EQ(tests[i].expected_upper_bound, range.last_byte_position());
71 EXPECT_FALSE(range.ComputeBounds(tests[i].instance_size));
73 EXPECT_EQ(tests[i].expected_lower_bound, range.first_byte_position());
74 EXPECT_EQ(tests[i].expected_upper_bound, range.last_byte_position());
75 EXPECT_EQ(tests[i].suffix_length, range.suffix_length());