blynn / nex

Lexer for Go
http://cs.stanford.edu/~blynn/nex/
GNU General Public License v3.0
416 stars 47 forks source link

test: cleanup and windows support #26

Closed infogulch closed 9 years ago

infogulch commented 9 years ago

For windows support, I changed paths to not depend on forward slash path separators; and copy files directly instead of calling out to cp which doesn't exist on windows.

Fixed a bug where a test tries to delete the working directory before chdir-ing out of it.

I also made go vet and gofmt happy.

:warning: I also removed an unused fmt package import from test/rp.y. Since this was apparently necessary in the past, it must have changed some time since January. This should probably be double-checked before merging.

See commit messages for more detail.

blynn commented 9 years ago

Thanks very much!