15 int stuff[] = {1, 2, 3};
16 pdfium::span<
int> null_span;
17 pdfium::span<
int> stuff_span(stuff);
18 pdfium::span<
int> empty_first_span = stuff_span.first(0);
19 pdfium::span<
int> empty_last_span = stuff_span.last(0);
20 pdfium::span<
int> empty_sub_span1 = stuff_span.subspan(0, 0);
21 pdfium::span<
int> empty_sub_span2 = stuff_span.subspan(3, 0);
22 EXPECT_TRUE(null_span.empty());
23 EXPECT_TRUE(empty_first_span.empty());
24 EXPECT_TRUE(empty_last_span.empty());
25 EXPECT_TRUE(empty_sub_span1.empty());
26 EXPECT_TRUE(empty_sub_span2.empty());
32 int stuff[] = {1, 2, 3};
33 pdfium::span<
int> one_span(one);
34 pdfium::span<
int> stuff_span(stuff);
35 EXPECT_EQ(one_span.front(), 1);
36 EXPECT_EQ(one_span.back(), 1);
37 EXPECT_EQ(stuff_span.front(), 1);
38 EXPECT_EQ(stuff_span.back(), 3);