Assert two BigDecimals are equal.
import { BigDecimal } from "@graphprotocol/graph-ts";import { describe, test } from "matchstick-as/assembly/index";import { tests } from "@protofire/subgraph-devkit";describe("decimalEquals", () => { test("decimal equals to decimal", () => { const a = BigDeciaml.fromString("100"); const b = BigDeciaml.fromString("100"); tests.asserts.decimalEquals(a, b); }););
the BigDecimal number.
Generated using TypeDoc
Assert two BigDecimals are equal.
Example