@@ -11,7 +11,7 @@ test_split_user_host_port() {
1111 test_split_user_host_port_with_hostname () {
1212 local input=
" [email protected] :22" 1313 local expected_output=(
" [email protected] " " 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"
1515 assert_no_error $? " ${FUNCNAME[0]} "
1616 }
1717 test_split_user_host_port_with_hostname
@@ -20,7 +20,7 @@ test_split_user_host_port() {
2020 test_split_user_host_port_with_ip () {
2121 local input=
" [email protected] :8080" 2222 local expected_output=(
" [email protected] " " 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"
2424 assert_no_error $? " ${FUNCNAME[0]} "
2525 }
2626 test_split_user_host_port_with_ip
@@ -29,7 +29,7 @@ test_split_user_host_port() {
2929 test_split_user_host_port_with_localhost () {
3030 local input=" root@localhost:3306"
3131 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"
3333 assert_no_error $? " ${FUNCNAME[0]} "
3434 }
3535 test_split_user_host_port_with_localhost
@@ -65,7 +65,7 @@ test_split_user_host() {
6565 test_split_user_host_with_hostname () {
66666767 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"
6969 assert_no_error $? " ${FUNCNAME[0]} "
7070 }
7171 test_split_user_host_with_hostname
@@ -74,7 +74,7 @@ test_split_user_host() {
7474 test_split_user_host_with_ip () {
75757676 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"
7878 assert_no_error $? " ${FUNCNAME[0]} "
7979 }
8080 test_split_user_host_with_ip
@@ -83,7 +83,7 @@ test_split_user_host() {
8383 test_split_user_host_with_localhost () {
8484 local input=" root@localhost"
8585 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"
8787 assert_no_error $? " ${FUNCNAME[0]} "
8888 }
8989 test_split_user_host_with_localhost
@@ -119,7 +119,7 @@ test_split_interface_ports() {
119119 test_split_interface_ports_ips () {
120120 local input=" 192.168.1.2:8080:192.168.1.100:80"
121121 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"
123123 assert_no_error $? " ${FUNCNAME[0]} "
124124 }
125125 test_split_interface_ports_ips
@@ -128,7 +128,7 @@ test_split_interface_ports() {
128128 test_split_interface_ports_mixed_hostnames () {
129129 local input=" localhost:80:test.com.test:2048"
130130 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"
132132 assert_no_error $? " ${FUNCNAME[0]} "
133133 }
134134 test_split_interface_ports_mixed_hostnames
0 commit comments