|
39 | 39 |
|
40 | 40 | # can control numeric tolerance |
41 | 41 |
|
42 | | - Expected `x1` (1) to equal `x2` (1.000001). |
| 42 | + Expected `x1` to equal `x2`. |
43 | 43 | Actual: |
44 | 44 | 1/1 mismatches |
45 | 45 | [1] 1 - 1 == -1e-06 |
46 | 46 |
|
47 | 47 | --- |
48 | 48 |
|
49 | | - Expected `x1` (1) to be equal to `x2` (1.000001). |
| 49 | + Expected `x1` to be equal to `x2`. |
50 | 50 |
|
51 | 51 | `actual`: 1.0000000 |
52 | 52 | `expected`: 1.0000010 |
53 | 53 |
|
54 | 54 | # provide useful feedback on failure |
55 | 55 |
|
56 | | - Expected `x` (1) to be identical to "a". |
| 56 | + Expected `x` to be identical to "a". |
57 | 57 |
|
58 | 58 | `actual` is a double vector (1) |
59 | 59 | `expected` is a character vector ('a') |
60 | 60 |
|
61 | 61 | --- |
62 | 62 |
|
63 | | - Expected `x` (1) to be equal to "a". |
| 63 | + Expected `x` to be equal to "a". |
64 | 64 |
|
65 | 65 | `actual` is a double vector (1) |
66 | 66 | `expected` is a character vector ('a') |
67 | 67 |
|
68 | 68 | --- |
69 | 69 |
|
70 | | - Expected `x` (1) to be identical to "a". |
| 70 | + Expected `x` to be identical to "a". |
71 | 71 | Types not compatible: double is not character |
72 | 72 |
|
73 | 73 | --- |
74 | 74 |
|
75 | | - Expected `x` (1) to equal "a". |
| 75 | + Expected `x` to equal "a". |
76 | 76 | Actual: |
77 | 77 | Types not compatible: double is not character |
78 | 78 |
|
|
100 | 100 | # useful message if objects equal but not identical |
101 | 101 |
|
102 | 102 | Expected `f` to be identical to `g`. |
103 | | - Names: 1 string mismatch |
104 | | - Length mismatch: comparison on first 1 components |
105 | | - Component 1: Modes of target, current: function, numeric |
106 | | - Component 1: target, current do not match when deparsed |
107 | | - Component 1: 'current' is not an environment |
| 103 | + names for target but not for current |
| 104 | + Length mismatch: comparison on first 0 components |
108 | 105 |
|
109 | 106 | # attributes for object (#452) |
110 | 107 |
|
111 | | - Expected `oops` (structure(0, oops = "oops")) to equal 0. |
| 108 | + Expected `oops` to equal 0. |
112 | 109 | Actual: |
113 | 110 | Attributes: < Modes: list, NULL > |
114 | 111 | Attributes: < Lengths: 1, 0 > |
|
0 commit comments