Module ValueMatcher
Functions
| matches(value, matchedValues) | Tests if the values match matchedValues. |
| matchType(typeName) | Matches a specific value type. |
Fields
| any | Matches any value. |
| notNil | Matches any value but nil. |
| anyBoolean | Matches a boolean value. |
| anyNumber | Matches a number. |
| anyString | Matches a string. |
| anyTable | Matches a table. |
| anyFunction | Matches a function. |
| anyThread | Matches a thread. |
| anyUserData | Matches a user data. |
Functions
- matches(value, matchedValues)
-
Tests if the values match
matchedValues. A list that consists of regular values or matchers.Also returns the value index and a reason when failing.
Parameters:
- value
- matchedValues
Returns:
trueif all values match orfalseif at least one don't. - matchType(typeName)
-
Matches a specific value type.
Parameters:
- typeName