use nova_runtime::process::{args, nova_rt_process_arg_count, set_args};
#[test]
fn set_args_fixes_the_list_once() {
let first = vec![
"prog.nova".to_string(),
"one".to_string(),
"two words".to_string(),
String::new(),
];
assert!(set_args(first.clone()), "the first set_args takes");
assert_eq!(args(), first.as_slice());
assert_eq!(nova_rt_process_arg_count(), 4);
assert!(
!set_args(vec!["other".to_string()]),
"a second set_args is refused"
);
assert_eq!(args(), first.as_slice(), "and changes nothing");
}