|
|
|
|
|
by scotch_drinker
4534 days ago
|
|
I have not gotten the test harness (written in python) to run on windows yet but the level0 executable is just a ruby script and can be run on Windows with some modifications. If you try to run "python test/harness", it will pull the dictionary down locally in the test folder. Once that's done, make the following modification to the level0 file: contents = ARGV.length > 1 ? File.read(ARGV[1]) : $stdin.read That's just allowing you to send the test files in on the command line. From there, you can measure the time using PowerShell's Measure-Command like so: Measure-Command {ruby .\level0 "test/data/words" "long.txt"} Assuming ruby is in your PATH and the "test/data/words" is a renamed words dictionary file. It's a little work but you can definitely do it on Windows. I'm working on getting the python test harness to work on Windows. |
|