diff --git a/osdk/tests/cli/mod.rs b/osdk/tests/cli/mod.rs index ed909baaf..4a7fbc1fd 100644 --- a/osdk/tests/cli/mod.rs +++ b/osdk/tests/cli/mod.rs @@ -1,5 +1,7 @@ // SPDX-License-Identifier: MPL-2.0 +use std::fs; + use crate::util::*; #[test] @@ -50,3 +52,13 @@ fn cli_clippy_help_message() { assert_success(&output); assert_stdout_contains_msg(&output, "cargo osdk clippy"); } + +#[test] +fn cli_new_crate_with_hyphen() { + let output = cargo_osdk(&["new", "--kernel", "my-first-os"]) + .output() + .unwrap(); + assert_success(&output); + assert!(fs::metadata("my-first-os").is_ok()); + fs::remove_dir_all("my-first-os"); +}