@@ -11,7 +11,7 @@ test_split_user_host_port() {
11
11
test_split_user_host_port_with_hostname () {
12
12
local input=" john@example.com:22"
13
13
local expected_output=(" john@example.com" " 22" )
14
- assert " $( split_user_host_port $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with hostname"
14
+ assert_equals " $( split_user_host_port $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with hostname"
15
15
assert_no_error $? " ${FUNCNAME[0]} "
16
16
}
17
17
test_split_user_host_port_with_hostname
@@ -20,7 +20,7 @@ test_split_user_host_port() {
20
20
test_split_user_host_port_with_ip () {
21
21
local input=" alice@192.168.1.10:8080"
22
22
local expected_output=(" alice@192.168.1.10" " 8080" )
23
- assert " $( split_user_host_port $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with IP address"
23
+ assert_equals " $( split_user_host_port $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with IP address"
24
24
assert_no_error $? " ${FUNCNAME[0]} "
25
25
}
26
26
test_split_user_host_port_with_ip
@@ -29,7 +29,7 @@ test_split_user_host_port() {
29
29
test_split_user_host_port_with_localhost () {
30
30
local input=" root@localhost:3306"
31
31
local expected_output=(" root@localhost" " 3306" )
32
- assert " $( split_user_host_port $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with localhost"
32
+ assert_equals " $( split_user_host_port $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with localhost"
33
33
assert_no_error $? " ${FUNCNAME[0]} "
34
34
}
35
35
test_split_user_host_port_with_localhost
@@ -65,7 +65,7 @@ test_split_user_host() {
65
65
test_split_user_host_with_hostname () {
66
66
local input=" john@example.com"
67
67
local expected_output=(" john" " example.com" )
68
- assert " $( split_user_host $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with hostname"
68
+ assert_equals " $( split_user_host $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with hostname"
69
69
assert_no_error $? " ${FUNCNAME[0]} "
70
70
}
71
71
test_split_user_host_with_hostname
@@ -74,7 +74,7 @@ test_split_user_host() {
74
74
test_split_user_host_with_ip () {
75
75
local input=" alice@192.168.1.10"
76
76
local expected_output=(" alice" " 192.168.1.10" )
77
- assert " $( split_user_host $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with IP address"
77
+ assert_equals " $( split_user_host $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with IP address"
78
78
assert_no_error $? " ${FUNCNAME[0]} "
79
79
}
80
80
test_split_user_host_with_ip
@@ -83,7 +83,7 @@ test_split_user_host() {
83
83
test_split_user_host_with_localhost () {
84
84
local input=" root@localhost"
85
85
local expected_output=(" root" " localhost" )
86
- assert " $( split_user_host $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with localhost"
86
+ assert_equals " $( split_user_host $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with localhost"
87
87
assert_no_error $? " ${FUNCNAME[0]} "
88
88
}
89
89
test_split_user_host_with_localhost
@@ -119,7 +119,7 @@ test_split_interface_ports() {
119
119
test_split_interface_ports_ips () {
120
120
local input=" 192.168.1.2:8080:192.168.1.100:80"
121
121
local expected_output=(" 192.168.1.2" " 8080" " 192.168.1.100" " 80" )
122
- assert " $( split_interface_ports $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with IP addresses"
122
+ assert_equals " $( split_interface_ports $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with IP addresses"
123
123
assert_no_error $? " ${FUNCNAME[0]} "
124
124
}
125
125
test_split_interface_ports_ips
@@ -128,7 +128,7 @@ test_split_interface_ports() {
128
128
test_split_interface_ports_mixed_hostnames () {
129
129
local input=" localhost:80:test.com.test:2048"
130
130
local expected_output=(" localhost" " 80" " test.com.test" " 2048" )
131
- assert " $( split_interface_ports $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with mixed hostnames"
131
+ assert_equals " $( split_interface_ports $input ) " " ${expected_output[*]} " " ${FUNCNAME[0]} : test with mixed hostnames"
132
132
assert_no_error $? " ${FUNCNAME[0]} "
133
133
}
134
134
test_split_interface_ports_mixed_hostnames
0 commit comments