pub mod attr;
pub mod cap;
pub mod clone;
pub mod curses;
pub mod datetime;
pub mod db_gdbm;
pub mod example;
pub mod files;
pub mod hlgroup;
pub mod ksh93;
pub mod langinfo;
pub mod mapfile;
pub mod mathfunc;
pub mod nearcolor;
pub mod newuser;
pub mod param_private;
pub mod parameter;
pub mod pcre;
pub mod random;
pub mod random_real;
pub mod regex;
pub mod socket;
pub mod stat;
pub mod system;
pub mod tcp;
pub mod tcp_h;
pub mod termcap;
pub mod terminfo;
pub mod watch;
pub mod zftp;
pub mod zprof;
pub mod zpty;
pub mod zselect;
pub mod zutil;
#[cfg(test)]
mod tests {
use crate::zsh_h::{hashnode, param, PM_SCALAR};
#[test]
fn paramtypestr_reports_scalar_for_scalar() {
let _g = crate::test_util::global_state_lock();
let pm = param {
node: hashnode {
next: None,
nam: String::new(),
flags: PM_SCALAR as i32,
},
u_data: 0,
u_arr: None,
u_str: Some("v".to_string()),
u_val: 0,
u_dval: 0.0,
u_hash: None,
gsu_s: None,
gsu_i: None,
gsu_f: None,
gsu_a: None,
gsu_h: None,
base: 0,
width: 0,
env: None,
ename: None,
old: None,
level: 0,
};
let typ = super::parameter::paramtypestr(&pm);
assert_eq!(typ, "scalar");
}
}