Skip to content

Commit ef8dddf

Browse files
Update tools_test.rs
1 parent ad1227c commit ef8dddf

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

tests/tools_test.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use torot_lib::core::tools::{infer_target_kind, host_from_target, url_from_target};
1+
use torot_lib::core::tools::{host_from_target, infer_target_kind, url_from_target};
22

33
#[test]
44
fn test_infer_target_kind_url() {
@@ -21,9 +21,15 @@ fn test_host_from_target() {
2121

2222
#[test]
2323
fn test_url_from_target() {
24-
assert_eq!(url_from_target("https://example.com"), "https://example.com");
24+
assert_eq!(
25+
url_from_target("https://example.com"),
26+
"https://example.com"
27+
);
2528
assert_eq!(url_from_target("example.com"), "https://example.com");
26-
assert_eq!(url_from_target("http://test.com/path"), "http://test.com/path");
29+
assert_eq!(
30+
url_from_target("http://test.com/path"),
31+
"http://test.com/path"
32+
);
2733
}
2834

2935
#[test]

0 commit comments

Comments
 (0)