File: ui_test.rs

package info (click to toggle)
rust-daft-derive 0.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 404 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 482 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! UI tests.
//!
//! This is a separate binary from `integration_test.rs` because
//! `integration_test.rs` actually uses the macro under consideration -- it
//! might fail to compile, but we still want to see what the UI tests say.
//!
//! (It might make sense to move integration_test.rs to the daft crate in the
//! future.)

#[test]
fn ui() {
    let t = trybuild::TestCases::new();
    t.pass("tests/fixtures/valid/*.rs");
    t.compile_fail("tests/fixtures/invalid/*.rs");
}