Skip to content

Commit a1941b5

Browse files
committed
Add test
1 parent 3ae3c9c commit a1941b5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

crates/egui/src/widget_text.rs

+10
Original file line numberDiff line numberDiff line change
@@ -822,3 +822,13 @@ impl From<Arc<Galley>> for WidgetText {
822822
Self::Galley(galley)
823823
}
824824
}
825+
826+
#[cfg(test)]
827+
mod tests {
828+
use crate::WidgetText;
829+
830+
#[test]
831+
fn ensure_small_widget_text() {
832+
assert_eq!(size_of::<WidgetText>(), size_of::<String>());
833+
}
834+
}

0 commit comments

Comments
 (0)