> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# DA.Assert

> Reference documentation for Daml module DA.Assert.

Daml module

# DA.Assert

\-

Daml

Module
DA.Assert

Latest release
3.7.5

## Functions

### `assertEq`

`assertEq` : ([`CanAssert`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-da-internal-assert-canassert-67323) `m`, [`Show`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-ghc-show-show-65360) `a`, [`Eq`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-ghc-classes-eq-22713) `a`) => `a` -> `a` -> `m` ()

Check two values for equality. If they're not equal,
fail with a message.

### `===`

`===` : ([`CanAssert`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-da-internal-assert-canassert-67323) `m`, [`Show`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-ghc-show-show-65360) `a`, [`Eq`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-ghc-classes-eq-22713) `a`) => `a` -> `a` -> `m` ()

Infix version of `assertEq`.

### `assertNotEq`

`assertNotEq` : ([`CanAssert`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-da-internal-assert-canassert-67323) `m`, [`Show`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-ghc-show-show-65360) `a`, [`Eq`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-ghc-classes-eq-22713) `a`) => `a` -> `a` -> `m` ()

Check two values for inequality. If they're equal,
fail with a message.

### `=/=`

`=/=` : ([`CanAssert`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-da-internal-assert-canassert-67323) `m`, [`Show`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-ghc-show-show-65360) `a`, [`Eq`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-ghc-classes-eq-22713) `a`) => `a` -> `a` -> `m` ()

Infix version of `assertNotEq`.

### `assertAfterMsg`

`assertAfterMsg` : ([`CanAssert`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-da-internal-assert-canassert-67323) `m`, [`HasTime`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-da-internal-lf-hastime-96546) `m`) => [`Text`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#type-ghc-types-text-51952) -> [`Time`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#type-da-internal-lf-time-63886) -> `m` ()

Check whether the given time is in the future. If it's not,
abort with a message.

### `assertBeforeMsg`

`assertBeforeMsg` : ([`CanAssert`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-da-internal-assert-canassert-67323) `m`, [`HasTime`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#class-da-internal-lf-hastime-96546) `m`) => [`Text`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#type-ghc-types-text-51952) -> [`Time`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#type-da-internal-lf-time-63886) -> `m` ()

Check whether the given time is in the past. If it's not,
abort with a message.

### `assertWithinDeadline`

`assertWithinDeadline` : [`Text`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#type-ghc-types-text-51952) -> [`Time`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#type-da-internal-lf-time-63886) -> [`Update`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#type-da-internal-lf-update-68072) ()

Check whether the ledger time of the transaction is strictly before the given deadline.
If it's not, abort with a message.

### `assertDeadlineExceeded`

`assertDeadlineExceeded` : [`Text`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#type-ghc-types-text-51952) -> [`Time`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#type-da-internal-lf-time-63886) -> [`Update`](https://docs.canton.network/appdev/reference/daml-standard-library/prelude#type-da-internal-lf-update-68072) ()

Check whether the ledger time of the transaction is at or after the given deadline.
If it's not, abort with a message.
