Added unit tests for all the new widgets

This commit is contained in:
2024-02-13 12:03:56 -07:00
parent 6ba78cb4ba
commit 649f4b5e3b
16 changed files with 611 additions and 1 deletions
+4
View File
@@ -6,6 +6,10 @@ use ratatui::prelude::Text;
use ratatui::style::Stylize;
use ratatui::widgets::{Paragraph, Widget};
#[cfg(test)]
#[path = "checkbox_tests.rs"]
mod checkbox_tests;
pub struct Checkbox<'a> {
label: &'a str,
is_checked: bool,