trigout 0.1.0

Trigger based formatter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use trigout::get_socket_name;

#[test]
fn test_get_socket_name() {
    let with_name_args = vec!["".to_owned(), "a".to_owned()];
    let with_no_name_args = vec!["".to_owned()];
    let with_space_args = vec!["".to_owned(), "a s".to_owned()];

    assert_eq!("a", get_socket_name(&with_name_args));
    assert_eq!("0", get_socket_name(&with_no_name_args));
    assert_eq!("a s", get_socket_name(&with_space_args));
}