Sha256: f0bb751c4221bfe693f466dfc794c1cdc513cc7075bcba6d664f7d4eff0a0f64

Contents?: true

Size: 828 Bytes

Versions: 14

Compression:

Stored size: 828 Bytes

Contents

- name: Decimal128 in untyped field - matches
  document:
    number: !ruby/object:BSON::Decimal128
      low: 4224
      high: 3475653012423180288
  query:
    number:
      $type: 19
  matches: true
  min_server_version: 3.4

- name: Decimal128 field - matches
  document:
    decimal128_field: !ruby/object:BSON::Decimal128
      low: 4224
      high: 3475653012423180288
  query:
    decimal128_field:
      $type: 19
  matches: true
  min_server_version: 3.4

- name: existing field - does not match decimal
  document:
    name: "foo"
  query:
    name:
      $type: 19
  matches: false
  min_server_version: 3.4

- name: BigDecimal field - does not match
  document:
    big_decimal_field: !ruby/object:BigDecimal
      18:0.42e2
  query:
    big_decimal_field:
      $type: 19
  matches: false
  min_server_version: 3.4

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mongoid-7.5.4 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.5.3 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.5.2 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.5.1 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.4.3 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.5.0 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.4.1 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.3.5 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.4.0 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.3.4 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.3.3 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.3.2 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.3.1 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-7.3.0 spec/integration/matcher_operator_data/type_decimal.yml