1 assert(WindowsPath().isDot); 2 assert(WindowsPath("").isDot); 3 assert(WindowsPath(".").isDot); 4 assert(!WindowsPath("/").isDot); 5 assert(!WindowsPath("hello").isDot); 6 assert(PosixPath().isDot); 7 assert(PosixPath("").isDot); 8 assert(PosixPath(".").isDot); 9 assert(!PosixPath("/").isDot); 10 assert(!PosixPath("hello").isDot);
Whether the path is either "" or ".".