diff options
Diffstat (limited to 'libgo/go/path/example_test.go')
-rw-r--r-- | libgo/go/path/example_test.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libgo/go/path/example_test.go b/libgo/go/path/example_test.go index ca18b32305..88b76557f2 100644 --- a/libgo/go/path/example_test.go +++ b/libgo/go/path/example_test.go @@ -56,7 +56,14 @@ func ExampleIsAbs() { func ExampleJoin() { fmt.Println(path.Join("a", "b", "c")) - // Output: a/b/c + fmt.Println(path.Join("a", "b/c")) + fmt.Println(path.Join("a/b", "c")) + fmt.Println(path.Join("a/b", "/c")) + // Output: + // a/b/c + // a/b/c + // a/b/c + // a/b/c } func ExampleSplit() { |