Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation for lt$, lte$, gt$, gte$ rules (See #3) #12

Merged
merged 15 commits into from Sep 18, 2012

Conversation

marianr
Copy link
Contributor

@marianr marianr commented Sep 10, 2012

Internal validation rules for are commented out because they need #1 to be implemented.

}

function castToNumber( val ) {
if( _.isNumber(val) ) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

castToNumber is not neccessary - JavaScript gives "good" values for <,>,<=,>= for all types - so we can generalize to strings, etc pure Date objects also work just fine

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"bad habits" from strongly typed languages. I will remove this function and check the tests.

rjrodger added a commit that referenced this pull request Sep 18, 2012
Implementation for lt$, lte$, gt$, gte$ rules (See #3)
@rjrodger rjrodger merged commit b92f060 into rjrodger:master Sep 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants