assertEmpty(Path().extensions); assertEmpty(Path("").extensions); assertEmpty(Path("/").extensions); assertEmpty(Path("/hello").extensions); assertEmpty(Path("C:/hello/world").extensions); assertEqual(Path("C:/hello/world.exe").extensions, [".exe"]); assertEqual(Path("hello/world.foo.bar.exe").extensions, [".foo", ".bar", ".exe"]);
All extensions of the path.