keon / algorithms

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

Fixed minor bugs from unix.path #919

Open ca20110820 opened 5 months ago

ca20110820 commented 5 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