vivin / regula

Regula: An annotation-based form-validation framework in Javascript
126 stars 24 forks source link

Tests failing #14

Closed vivin closed 13 years ago

vivin commented 13 years ago

20 tests are failing currently (weird; I ran all the tests before the last commit).

troyji commented 13 years ago

I found your problem.

    var firstCustomIndex = 15;

should be

    var firstCustomIndex = 21;

It looks like this bug has been there for some time, but your tests are ordered such that the failures have not been triggered before. It is being triggered now because of the new constraints.

vivin commented 13 years ago

I knew that would come bite me in the face sometime or the other. I need to put a huge comment in there to remind me to fix that index.

What's extremely bizarre is how the length of the string argument to "module" was causing this to happen... so strange. Perhaps that changes the order in which the tests are run.