added trybuild
This commit is contained in:
7
satrs-macros/tests/basic.rs
Normal file
7
satrs-macros/tests/basic.rs
Normal file
@ -0,0 +1,7 @@
|
||||
use satrs_core::resultcode::ResultU16;
|
||||
use satrs_macros::*;
|
||||
|
||||
#[result]
|
||||
const TEST_RESULT: ResultU16 = ResultU16::const_new(0, 1);
|
||||
|
||||
fn main() {}
|
5
satrs-macros/tests/tests.rs
Normal file
5
satrs-macros/tests/tests.rs
Normal file
@ -0,0 +1,5 @@
|
||||
#[test]
|
||||
fn tests() {
|
||||
let t = trybuild::TestCases::new();
|
||||
t.pass("tests/basic.rs");
|
||||
}
|
Reference in New Issue
Block a user