refactor: Generalize test file name

This commit is contained in:
Ed Page 2022-02-11 16:17:15 -06:00
parent bbf4722720
commit a627778809
3 changed files with 9 additions and 11 deletions

View file

@ -1,8 +0,0 @@
use crate::Arg;
// This test will *fail to compile* if Arg is not Send + Sync
#[test]
fn arg_send_sync() {
fn foo<T: Send + Sync>(_: T) {}
foo(Arg::new("test"))
}

View file

@ -19,9 +19,7 @@ mod regex;
mod debug_asserts;
#[cfg(test)]
mod app_tests;
#[cfg(test)]
mod arg_tests;
mod tests;
pub use app::App;
pub use app_settings::{AppFlags, AppSettings};

View file

@ -1,4 +1,5 @@
use crate::App;
use crate::Arg;
#[test]
fn propagate_version() {
@ -46,3 +47,10 @@ fn issue_2090() {
.unwrap()
.is_disable_version_flag_set());
}
// This test will *fail to compile* if Arg is not Send + Sync
#[test]
fn arg_send_sync() {
fn foo<T: Send + Sync>(_: T) {}
foo(Arg::new("test"))
}