Skip to content

Commit 1bb9042

Browse files
authored
Merge pull request #35 from HadrienG2/fix-clone-test
Fix clone test
2 parents 316f00a + 1ef9ba3 commit 1bb9042

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,10 +625,11 @@ mod tests {
625625

626626
// Check that the clone uses its own, separate shared data storage
627627
assert_eq!(
628-
as_ptr(&buf_clone.output.shared),
628+
as_ptr(&buf_clone.input.shared),
629629
as_ptr(&buf_clone.output.shared)
630630
);
631-
assert!(as_ptr(&buf_clone.input.shared) != as_ptr(&buf.input.shared));
631+
assert_ne!(as_ptr(&buf_clone.input.shared), as_ptr(&buf.input.shared));
632+
assert_ne!(as_ptr(&buf_clone.output.shared), as_ptr(&buf.output.shared));
632633

633634
// Check that it is identical from PartialEq's point of view
634635
assert_eq!(buf, buf_clone);

0 commit comments

Comments
 (0)