2023-04-28 11:25:44 +00:00
|
|
|
use nu_test_support::nu;
|
2022-12-07 02:48:03 +00:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn float_in_seq_leads_to_lists_of_floats() {
|
2023-04-28 11:25:44 +00:00
|
|
|
let actual = nu!("seq 1.0 0.5 6 | describe");
|
2022-12-07 02:48:03 +00:00
|
|
|
|
2023-01-04 05:08:05 +00:00
|
|
|
assert_eq!(actual.out, "list<float> (stream)");
|
2022-12-07 02:48:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn ints_in_seq_leads_to_lists_of_ints() {
|
2023-04-28 11:25:44 +00:00
|
|
|
let actual = nu!("seq 1 2 6 | describe");
|
2022-12-07 02:48:03 +00:00
|
|
|
|
2023-01-04 05:08:05 +00:00
|
|
|
assert_eq!(actual.out, "list<int> (stream)");
|
2022-12-07 02:48:03 +00:00
|
|
|
}
|