feat: add a propositional logic expression tree
This commit is contained in:
parent
fcb4dc9740
commit
32d92df549
3 changed files with 55 additions and 14 deletions
|
|
@ -1,14 +1 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
pub mod expr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue