/protest

a prototype based javascript test framework.

Primary LanguageJavaScript

Is.rangeOf()

can only apply two numeric as min and max.

valid value is a random number in the range.

invalid value is a random number out of the range.

Is.enumOf()

can only apply an array as enum set.

enum set cannot be empty.

valid value is a randomly selected value from the set.

invalid value is undefined.

Is.anyOf()

can only apply Number or String as a class for now.

valid value is a randomly generated number with 8 digits.

invalid value is undefined.

Is.equal()

can apply any object as the value.

valid value is the value you set.

invalid value is undefined.