Skip to content

Commit

Permalink
fix: remove unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Dec 8, 2024
1 parent a29882d commit 6206751
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions iced_layershell/tests/test_macro.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use iced_layershell::actions::{IsSingleton, MainWindowInfo};
use iced_layershell::{to_layer_message, WindowInfoMarker};

#[test]
Expand All @@ -11,30 +10,3 @@ fn test_layer_message_macro() {
let e = TestEnum::SizeChange((10, 10));
let _ = e.clone();
}

#[test]
fn test_layersingleton_derive() {
#[allow(unused)]
#[derive(WindowInfoMarker)]
enum SingleToneTest {
#[singleton]
SingleTon,
NotSingleTon,
#[singleton]
SingleTonTwo {
field: bool,
},
#[singleton]
SingleTonThird(i32),
#[main]
Main,
}
assert!(SingleToneTest::SingleTon.is_singleton());
assert!(!SingleToneTest::NotSingleTon.is_singleton());
assert!(SingleToneTest::SingleTonTwo { field: false }.is_singleton());
assert!(SingleToneTest::SingleTonThird(10).is_singleton());
assert!(matches!(
MainWindowInfo.try_into().unwrap(),
SingleToneTest::Main
))
}

0 comments on commit 6206751

Please sign in to comment.