• Assert two BigDecimals are equal.

    Example

    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);
    });
    );

    Parameters

    • v1: BigDecimal

      the BigDecimal number.

    • v2: BigDecimal

      the BigDecimal number.

    Returns void

Generated using TypeDoc