Skip to content

Commit

Permalink
test test cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenesvk committed May 27, 2024
1 parent aea7fe6 commit 425727d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parser/src/cfg/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1955,6 +1955,7 @@ fn disallow_whitespace_in_tooltip_size() {
parse_cfg(source).map(|_| ()).expect_err("fails");
}

#[cfg(any(target_os = "windows", target_os = "unknown"))]
#[test]
fn win_message_ok() {
let source = r#"
Expand All @@ -1972,6 +1973,7 @@ fn win_message_ok() {
.expect("parse succeeds");
}

#[cfg(any(target_os = "windows", target_os = "unknown"))]
#[test]
fn win_message_wrong_number_value() {
let source = "
Expand All @@ -1982,6 +1984,7 @@ fn win_message_wrong_number_value() {
parse_cfg(source).map(|_| ()).expect_err("fails");
}

#[cfg(any(target_os = "windows", target_os = "unknown"))]
#[test]
fn win_message_wrong_number_type() {
let source = r#"
Expand All @@ -1992,6 +1995,7 @@ fn win_message_wrong_number_type() {
parse_cfg(source).map(|_| ()).expect_err("fails");
}

#[cfg(any(target_os = "windows", target_os = "unknown"))]
#[test]
fn win_message_too_many_args() {
let source = r#"
Expand Down

0 comments on commit 425727d

Please sign in to comment.