nu-command 0.105.1

Nushell's built-in commands
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use nu_test_support::nu;

#[test]
fn float_in_seq_leads_to_lists_of_floats() {
    let actual = nu!("seq 1.0 0.5 6 | describe");

    assert_eq!(actual.out, "list<float> (stream)");
}

#[test]
fn ints_in_seq_leads_to_lists_of_ints() {
    let actual = nu!("seq 1 2 6 | describe");

    assert_eq!(actual.out, "list<int> (stream)");
}