Skip to content

BigInt comparison fails, Caml_obj_equal not working #6096

Closed
@jmagaram

Description

@jmagaram

Trying Core right now. This test fails.

  let num1 = BigInt.fromString("12345")
  let num2 = BigInt.fromString("9843")
  T.expect(num1 == num2)->T.Expect.toEqual(false)
  T.expect(num1 == num1)->T.Expect.toEqual(true)

Caml_obj.equal gives the wrong result. If I replace it with == or != it works.

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