Skip to content

Commit 11ab906

Browse files
committed
CI: test cargo test for crate basm
1 parent 5c83880 commit 11ab906

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

basm/src/bin/basm-lib.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,16 @@ extern crate basm_std as basm;
1313

1414
#[allow(dead_code)]
1515
#[path = "../solution.rs"]
16-
mod solution;
16+
mod solution;
17+
18+
#[cfg(test)]
19+
mod verify_test_works {
20+
fn add(x: i64, y: i64) -> i64 {
21+
x + y
22+
}
23+
24+
#[test]
25+
fn run() {
26+
assert_eq!(8, add(5, 3));
27+
}
28+
}

0 commit comments

Comments
 (0)