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