mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Move util crate unit tests into a new unit_tests crate
This commit is contained in:
parent
3fb666cf60
commit
6d5406efc1
13 changed files with 222 additions and 183 deletions
9
tests/unit/util/task.rs
Normal file
9
tests/unit/util/task.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
use std::borrow::ToOwned;
|
||||
use util::task::spawn_named;
|
||||
|
||||
#[test]
|
||||
fn spawn_named_test() {
|
||||
spawn_named("Test".to_owned(), move || {
|
||||
println!("I can run!");
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue