This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
open Stdune
|
||||
|
||||
let%expect_test "is_root" =
|
||||
[ ""; "."; "/"; "foo/bar"; "/foo" ]
|
||||
|> List.iter ~f:(fun path -> printfn "Fpath.is_root %S = %b" path (Fpath.is_root path));
|
||||
[%expect
|
||||
{|
|
||||
Fpath.is_root "" = false
|
||||
Fpath.is_root "." = true
|
||||
Fpath.is_root "/" = true
|
||||
Fpath.is_root "foo/bar" = false
|
||||
Fpath.is_root "/foo" = false |}]
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue