keon / algorithms

Minimal examples of data structures and algorithms in Python
MIT License
24.11k stars 4.61k forks source link

Fixed minor bugs from unix.path #919

Open ca20110820 opened 7 months ago

ca20110820 commented 7 months ago

Resolves minor bug seen from tests/test_unix.py under TestUnixPath.

The original implementation uses "{}/{}" which causes the bug when tested under Windows OS. I generalized it with:

os.path.join('{}', '{}')

without assuming the local machine's OS.

Changes