Skip to content

Commit d1e83c2

Browse files
committed
primitives - analytics - O.S. - tests improvement
1 parent 5268fac commit d1e83c2

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

primitives/src/analytics.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,11 @@ mod test {
269269
.unwrap()
270270
.get(0);
271271

272-
assert_eq!(&actual_os, &row_os);
272+
assert_eq!(
273+
&actual_os, &row_os,
274+
"expected and actual FromSql differ for {}",
275+
input
276+
);
273277
}
274278

275279
// to SQL
@@ -279,7 +283,11 @@ mod test {
279283
.await
280284
.unwrap()
281285
.get(0);
282-
assert_eq!(&actual_os, &row_os);
286+
assert_eq!(
287+
&actual_os, &row_os,
288+
"expected and actual ToSql differ for {}",
289+
input
290+
);
283291
}
284292
}
285293
}
@@ -289,7 +297,6 @@ mod test {
289297
for (input, (expect_os, expect_json)) in TEST_CASES.iter() {
290298
let actual_os = OperatingSystem::map_os(input);
291299

292-
// let input_json = Value::String(input.clone());
293300
assert_eq!(
294301
expect_os, &actual_os,
295302
"expected and actual differ for {}",

0 commit comments

Comments
 (0)