|
12 | 12 | expect_named(x, "b") |
13 | 13 | Condition |
14 | 14 | Error: |
15 | | - ! Expected names(`x`) to be equal to "b". |
| 15 | + ! Expected names of `x` to be equal to "b". |
16 | 16 | Differences: |
17 | 17 | `actual`: "a" |
18 | 18 | `expected`: "b" |
|
23 | 23 | expect_named(x1, c("a", "b"), ignore.order = TRUE) |
24 | 24 | Condition |
25 | 25 | Error: |
26 | | - ! Expected names(`x1`) to have the same values as `c("a", "b")`. |
| 26 | + ! Expected names of `x1` to have the same values as `c("a", "b")`. |
27 | 27 | Actual: "a" |
28 | 28 | Expected: "a", "b" |
29 | 29 | Absent: "b" |
|
34 | 34 | expect_named(x2, "a", ignore.order = TRUE) |
35 | 35 | Condition |
36 | 36 | Error: |
37 | | - ! Expected names(`x2`) to have the same values as "a". |
| 37 | + ! Expected names of `x2` to have the same values as "a". |
38 | 38 | Actual: "a", "b" |
39 | 39 | Expected: "a" |
40 | 40 | Needs: "b" |
|
45 | 45 | expect_named(x1, "b", ignore.order = TRUE) |
46 | 46 | Condition |
47 | 47 | Error: |
48 | | - ! Expected names(`x1`) to have the same values as "b". |
| 48 | + ! Expected names of `x1` to have the same values as "b". |
49 | 49 | Actual: "a" |
50 | 50 | Expected: "b" |
51 | 51 | Needs: "a" |
|
57 | 57 | expect_named(x1, c("a", "b"), ignore.order = FALSE) |
58 | 58 | Condition |
59 | 59 | Error: |
60 | | - ! Expected names(`x1`) to be equal to `c("a", "b")`. |
| 60 | + ! Expected names of `x1` to be equal to `c("a", "b")`. |
61 | 61 | Differences: |
62 | 62 | `actual`: "a" |
63 | 63 | `expected`: "a" "b" |
|
68 | 68 | expect_named(x2, "a", ignore.order = FALSE) |
69 | 69 | Condition |
70 | 70 | Error: |
71 | | - ! Expected names(`x2`) to be equal to "a". |
| 71 | + ! Expected names of `x2` to be equal to "a". |
72 | 72 | Differences: |
73 | 73 | `actual`: "a" "b" |
74 | 74 | `expected`: "a" |
75 | 75 |
|
76 | 76 | --- |
77 | 77 |
|
78 | 78 | Code |
79 | | - expect_named(x1, c("b"), ignore.order = FALSE) |
| 79 | + expect_named(x1, "b", ignore.order = FALSE) |
80 | 80 | Condition |
81 | 81 | Error: |
82 | | - ! Expected names(`x1`) to be equal to `c("b")`. |
| 82 | + ! Expected names of `x1` to be equal to "b". |
83 | 83 | Differences: |
84 | 84 | `actual`: "a" |
85 | 85 | `expected`: "b" |
|
0 commit comments