boilerplate setup

This commit is contained in:
2024-09-07 15:27:38 -04:00
parent e16f237179
commit 0c36b899da
3 changed files with 16 additions and 3 deletions

4
src/lib.rs Normal file
View File

@@ -0,0 +1,4 @@
pub struct StateOwner {
pub state: String,
}

View File

@@ -1,3 +0,0 @@
fn main() {
println!("Hello, world!");
}

12
tests/state_changer.rs Normal file
View File

@@ -0,0 +1,12 @@
use state_queue::StateOwner;
#[test]
fn create_state_owner() {
//this test is just to show how to initialize state
//and verify that cargo test is actually working
let example = StateOwner{
state: String::from("State Owner Created!"),
};
assert_eq!(example.state, "State Owner Created!");
}