forked from katzen-cafe/iowo
executor (poc): init proof of concept executor crate
This commit is contained in:
parent
ccc6d4f532
commit
3412eb9395
4 changed files with 29 additions and 1 deletions
14
crates/executor-poc/src/lib.rs
Normal file
14
crates/executor-poc/src/lib.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue