| 1 | //! UI tests. |
| 2 | //! |
| 3 | //! This is a separate binary from `integration_test.rs` because |
| 4 | //! `integration_test.rs` actually uses the macro under consideration -- it |
| 5 | //! might fail to compile, but we still want to see what the UI tests say. |
| 6 | //! |
| 7 | //! (It might make sense to move integration_test.rs to the daft crate in the |
| 8 | //! future.) |
| 9 | |
| 10 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 11 | fn uirust-analyzer cargo daft-derive 0.1.5 ui().() { |
| 12 | let t = trybuildrust-analyzer cargo trybuild 1.0.103 crate/::TestCasesrust-analyzer cargo trybuild 1.0.103 TestCases#::newrust-analyzer cargo trybuild 1.0.103 impl#[TestCases]new().(); |
| 13 | t.passrust-analyzer cargo trybuild 1.0.103 impl#[TestCases]pass().("tests/fixtures/valid/*.rs"); |
| 14 | t.compile_failrust-analyzer cargo trybuild 1.0.103 impl#[TestCases]compile_fail().("tests/fixtures/invalid/*.rs"); |
| 15 | } |