feat: begin working on semantics

This commit is contained in:
Anand Balakrishnan 2023-03-23 14:22:37 -07:00
parent eea6b2a619
commit 35a44ca3b1
No known key found for this signature in database
3 changed files with 23 additions and 4 deletions

View 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);
}
}