We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f5472 commit 8439abcCopy full SHA for 8439abc
tests/testthat/_snaps/expect-setequal.md
@@ -142,7 +142,15 @@
142
`actual$b`: 2.0
143
`expected$b`: 3.0
144
145
-# check inputs
+# warns if empty vector
146
+
147
+ Code
148
+ expect_success(expect_mapequal(list(), list()))
149
+ Condition
150
+ Warning:
151
+ `object` and `expected` are empty vectors.
152
153
+# validates its inputs
154
155
Code
156
expect_mapequal(sum, named)
@@ -179,14 +187,6 @@
179
187
! All elements in `object` must have unique names.
180
188
x Duplicate names: "x"
181
189
182
-# warns if empty vector
183
-
184
- Code
185
- expect_success(expect_mapequal(list(), list()))
186
- Condition
- Warning:
- `object` and `expected` are empty vectors.
190
# expect_contains() gives useful message on failure
191
192
0 commit comments