Finds the types that are the same in GlobalAccountData and RoomAccountData enums and changes the event type alias name to match the behavior of EventContent.
13 lines
592 B
Rust
13 lines
592 B
Rust
#[test]
|
|
fn ui() {
|
|
let t = trybuild::TestCases::new();
|
|
t.pass("tests/it/ui/01-content-sanity-check.rs");
|
|
t.compile_fail("tests/it/ui/02-no-event-type.rs");
|
|
t.compile_fail("tests/it/ui/03-invalid-event-type.rs");
|
|
t.pass("tests/it/ui/10-content-wildcard.rs");
|
|
t.pass("tests/it/ui/11-content-without-relation-sanity-check.rs");
|
|
t.compile_fail("tests/it/ui/12-no-relates_to.rs");
|
|
t.pass("tests/it/ui/13-private-event-content-type.rs");
|
|
t.pass("tests/it/ui/14-enum-content-double-kind.rs");
|
|
t.compile_fail("tests/it/ui/15-content-invalid-double-kind.rs");
|
|
}
|