File: invalid_should_panic_attr.rs

package info (click to toggle)
rust-test-casing 0.1.3-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 300 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 312 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use test_casing::test_casing;

#[test_casing(2, ["test", "this"])]
#[should_panic(expected = "!", bogus = true)]
fn tested_function(_arg: &str) {
    // Does nothing
}

#[test_casing(2, ["test", "this"])]
#[should_panic(expected = 777)]
fn other_tested_function(_arg: &str) {
    // Does nothing
}

fn main() {}