From 65f4b0fd1773d39e63df2ead99688ce52d985a3f Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 8 Sep 2015 21:31:29 -0700 Subject: [PATCH] Turn the example into a test Fix #14 --- {examples => tests}/basic.rs | 1 + 1 file changed, 1 insertion(+) rename {examples => tests}/basic.rs (98%) diff --git a/examples/basic.rs b/tests/basic.rs similarity index 98% rename from examples/basic.rs rename to tests/basic.rs index 8cc3515..cad24a9 100644 --- a/examples/basic.rs +++ b/tests/basic.rs @@ -8,6 +8,7 @@ use fringe::Context; #[thread_local] static mut ctx_slot: *mut Context<'static, fringe::OsStack> = 0 as *mut Context<_>; +#[test] fn main() { unsafe { let stack = fringe::OsStack::new(4 << 20).unwrap();