Skip to content

and() logical operator returns leftover number items when arrays are passed  #8

@efeichen

Description

@efeichen

So I was fixing the "bug" with binaryOperation(), and made changes so that new and old tests passed, except one:
screen shot 2018-06-20 at 4 50 35 pm
This doesn't really make sense to me because and() and the contains() I'm implementing now are similar in that they both return booleans. We already established that the contains() function should only return booleans and instead of adding unprocessed array items into the return array. Yet here, the expected result of the and() does the exact thing that we decided is not right.

Should this be fixed or is there a difference between and() and contains() in terms of what they should return that I'm missing here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions