Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri6037 committed Sep 6, 2024
2 parents aa925b0 + 9a03f2e commit 94ccac1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,18 @@ mod tests {
#[test]
fn basic() {
crate::engine::set(&crate::engine::default::DefaultDebugger {});
assert!(!crate::engine::set(&crate::engine::default::DefaultDebugger {}));
assert!(!crate::engine::set(
&crate::engine::default::DefaultDebugger {}
));
}

#[test]
fn after_use() {
crate::engine::get().span_exit(Id::new(unsafe { NonZeroU32::new_unchecked(1) }, unsafe {
NonZeroU32::new_unchecked(1)
}));
assert!(!crate::engine::set(&crate::engine::default::DefaultDebugger {}));
assert!(!crate::engine::set(
&crate::engine::default::DefaultDebugger {}
));
}
}

0 comments on commit 94ccac1

Please sign in to comment.