Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/clarigen/src/dev-deps.ts>assertEquals

Deno package for type-safe Clarinet tests
Go to Latest
function assertEquals
import { assertEquals } from "https://deno.land/x/clarigen@v0.4.9/src/dev-deps.ts";

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Type parameter can be specified to ensure values under comparison have the same type. For example:

assertEquals<number>(1, 2)

Parameters

actual: unknown
expected: unknown
optional
msg: string

Parameters

actual: T
expected: T
optional
msg: string