Skip to content

Commit d6c81f5

Browse files
Fix split_path tests
1 parent 33c9ec9 commit d6c81f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/stdlib/split_path.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,22 @@ impl Function for SplitPath {
4242
&[
4343
Example {
4444
title: "Split path with trailing slash",
45-
source: r#"split_path!("/home/user/")"#,
45+
source: r#"split_path("/home/user/")"#,
4646
result: Ok(r#"["/", "home", "user"]"#),
4747
},
4848
Example {
4949
title: "Split path from file path",
50-
source: r#"split_path!("/home/user")"#,
50+
source: r#"split_path("/home/user")"#,
5151
result: Ok(r#"["/", "home", "user"]"#),
5252
},
5353
Example {
5454
title: "Split path from root",
55-
source: r#"split_path!("/")"#,
55+
source: r#"split_path("/")"#,
5656
result: Ok(r#"["/"]"#),
5757
},
5858
Example {
5959
title: "Empty path returns empty array",
60-
source: r#"split_path!("")"#,
60+
source: r#"split_path("")"#,
6161
result: Ok("[]"),
6262
},
6363
]

0 commit comments

Comments
 (0)