zen0wu / topcoder-greed

greedy editor for topcoder arena
Apache License 2.0
229 stars 45 forks source link

Greed 2.0 individual testing via passing argument does not work as expected #64

Closed ashashwat closed 10 years ago

ashashwat commented 10 years ago

In Greed 1.5 and below, we could run individual test-cases by passing arguments.

→ ./a.out 0  # Expected to run first test case.  

In Greed 2.0, individual test cases ordering is changed.

→ ./a.out 0
MarblesInABag (1000 Points)

Passed : 0/1 cases
Time   : 0 minutes 21 secs
Score  : 999.85 points

→ ./a.out 0
MarblesInABag (1000 Points)

  Testcase #0 ... FAILED! (0.00 seconds)
       Expected: 0.333333
       Received: 0

Passed : 0/1 cases
Time   : 4 minutes 6 secs
Score  : 979.69 points

As in, to run 1st test case, we give argument 1 now instead of 0. But topcoder sample inputs are 0-index based.