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

Question regarding result consistency for <= and == with arrays #14

Open
csknns opened this issue Feb 17, 2019 · 0 comments
Open

Question regarding result consistency for <= and == with arrays #14

csknns opened this issue Feb 17, 2019 · 0 comments

Comments

@csknns
Copy link

csknns commented Feb 17, 2019

I was trying to implement a jsonlogic library in Swift, and I wanted the library to provide results similar to your json-logic. Playing around in http://jsonlogic.com/play.html I found that:
{ "<=" : [[1], [1]] } results in true
but
{ "==" : [[1], [1]] } results in false
and
{ "===" : [[1], [1]] } results in false
and
{ "<" : [[1], [1]] } results in false

I am trying to understand if this the correct and intended behavior, because it is hard to wrap my head around these results.

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

No branches or pull requests

1 participant