begin work on automata library

This commit is contained in:
Anand Balakrishnan 2023-08-30 13:25:07 -07:00
parent b20a838d06
commit 9d5f4bd70c
No known key found for this signature in database
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,9 @@
[package]
name = "argus-automata"
version = "0.0.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
petgraph = "0.6.3"

14
argus-automata/src/lib.rs Normal file
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);
}
}