Skip to content

Commit

Permalink
feat(tui): init (#24)
Browse files Browse the repository at this point in the history
- add `mms_tui` crate
  • Loading branch information
naxmefy authored Jul 2, 2024
1 parent 8e478c4 commit dd86380
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions crates/mms_tui/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "mms_tui"
version.workspace = true
rust-version.workspace = true
edition.workspace = true
authors.workspace = true
description.workspace = true
documentation.workspace = true

[dependencies]
17 changes: 17 additions & 0 deletions crates/mms_tui/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pub struct MMSTuiApplication {}
impl MMSTuiApplication {
fn new() -> Result<MMSTuiApplication, ()> {
Ok(MMSTuiApplication {})
}
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn test_new_without_params() {
let result = MMSTuiApplication::new();
assert!(result.is_ok(), "should initialize with new");
}
}

0 comments on commit dd86380

Please sign in to comment.