assertEqual(Path().stem, "."); assertEqual(Path("").stem, "."); assertEqual(Path("/").stem, ""); assertEqual(Path("/hello").stem, "hello"); assertEqual(Path("C:/hello/world").stem, "world"); assertEqual(Path("C:/hello/world.exe").stem, "world"); assertEqual(Path("hello/world.foo.bar.exe").stem, "world");
The name of the path without its extension.