Skip to content

Commit

Permalink
tests: Fix usage of unknown assert_eq macro
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenArthur committed Feb 8, 2023
1 parent 48c3083 commit ac17df4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/shared_library/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub fn bar() {}

#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
fn it_works() {}
}
6 changes: 3 additions & 3 deletions tests/static_lib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub fn foo() {}

#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
fn it_works() {}
}

0 comments on commit ac17df4

Please sign in to comment.