Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Commit 27c7d66

Browse files
committed
move resume test
1 parent a41f68b commit 27c7d66

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/wasm_resume.rs renamed to crates/tinywasm/tests/wasm_resume.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ use eyre;
33
use std::sync;
44
use std::{ops::ControlFlow, time::Duration};
55
use tinywasm::{
6-
CoroState, CoroStateResumeResult, Module, ModuleInstance, PotentialCoroCallResult, Store, SuspendConditions,
7-
SuspendReason,
6+
CoroState, CoroStateResumeResult, Extern, Imports, Module, ModuleInstance, PotentialCoroCallResult, Store,
7+
SuspendConditions, SuspendReason,
88
};
9-
use tinywasm::{Extern, Imports};
109
use wat;
1110

1211
#[test]
@@ -64,7 +63,7 @@ fn try_compare(lhs: &SuspendReason, rhs: &SuspendReason) -> eyre::Result<bool> {
6463
SuspendReason::SuspendedEpoch => matches!(rhs, SuspendReason::SuspendedEpoch),
6564
SuspendReason::SuspendedCallback => matches!(rhs, SuspendReason::SuspendedCallback),
6665
SuspendReason::SuspendedFlag => matches!(rhs, SuspendReason::SuspendedFlag),
67-
_ =>eyre::bail!("unimplemented new variant"),
66+
_ => eyre::bail!("unimplemented new variant"),
6867
})
6968
}
7069

0 commit comments

Comments
 (0)