- name: existing field - matches with int document: a: 54 binaryValueofA: "00110110" query: a: $bitsAllSet: 50 matches: true min_server_version: 3.2 - name: existing field - does not match with int document: a: 52 binaryValueofA: "00110100" query: a: $bitsAllSet: 50 matches: false min_server_version: 3.2 - name: existing field - matches with binData document: a: 54 binaryValueofA: "00110110" query: a: $bitsAllSet: !ruby/object:BSON::Binary data: !binary |- Ng== type: :generic matches: true min_server_version: 3.2 - name: existing field - does not match with binData document: a: 21 binaryValueofA: "00010101" query: a: $bitsAllSet: !ruby/object:BSON::Binary data: !binary |- MC== type: :generic matches: false min_server_version: 3.2 - name: existing binData field matches document: a: !ruby/object:BSON::Binary data: !binary |- Ng== type: :generic query: a: $bitsAllSet: 48 matches: true min_server_version: 3.2 - name: existing binData field does not match document: a: !ruby/object:BSON::Binary data: !binary |- MC== type: :generic query: a: $bitsAllSet: 54 matches: false min_server_version: 3.2 - name: existing field - matches with array document: a: 20 binaryValueofA: "00010100" query: a: $bitsAllSet: [2, 4] matches: true min_server_version: 3.2 - name: existing field - does not match with array document: a: 20 binaryValueofA: "00010100" query: a: $bitsAllSet: [0, 3] matches: false min_server_version: 3.2 - name: float condition representable as an integer document: a: 54 binaryValueofA: "00110110" query: a: $bitsAllSet: 50.0 matches: true min_server_version: 3.2 - name: float condition not representable as an integer document: a: 54 binaryValueofA: "00110110" query: a: $bitsAllSet: 50.1 error: true min_server_version: 3.2 - name: string condition document: a: 54 binaryValueofA: "00110110" query: a: $bitsAllSet: hello error: true min_server_version: 3.2 - name: empty array condition document: a: 54 binaryValueofA: "00110110" query: a: $bitsAllSet: [] matches: true min_server_version: 3.2 - name: integer 0 condition document: a: 54 binaryValueofA: "00110110" query: a: $bitsAllSet: 0 matches: true min_server_version: 3.2 - name: negative integer condition document: a: 54 binaryValueofA: "00110110" query: a: $bitsAllSet: -1 error: true min_server_version: 3.2 - name: negative float condition document: a: 54 binaryValueofA: "00110110" query: a: $bitsAllSet: -1.0 error: true min_server_version: 3.2