# rell.test · Rell standard library · Chromia Docs (concept)

> The rell.test namespace is only accessible within test modules Example Rell Copy @test module ; function test () { rell . test . block (). run (); } Types 

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/

PACKAGE

# rell.test

On this page

* [Example](#example)
* [Types](#types)
* [Functions](#functions)
* [Properties](#properties)

The [rell.test](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/) namespace is only accessible within test modules

### Example

Rell

```
@test module;
function test() {
    rell.test.block().run();
}
```

## Types

[block](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/block/)
:   A test block builder; i.e. a builder for test

[failure](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/failure/)
:   A test failure, with a message that gives the reason for the failure.

[keypair](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/keypair/)
:   A keypair for testing only.

[op](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/op/)
:   A test operation call, consisting of a name (an operation's mount name), and a list of arguments

[tx](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/tx/)
:   A test transaction builder; i.e. a builder for test

## Functions

[assert\_equals](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_equals/)
:   Assert two values are equal.

[assert\_events](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_events/)
:   Assert that the given events were emitted during the construction of the last block, in the

[assert\_fails](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_fails/)
:   Asserts a function fails; i.e. throws an exception.

[assert\_false](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_false/)
:   Assert a value is false.

[assert\_ge](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_ge/)
:   Assert that a value is greater than or equal to a given lower bound.

[assert\_ge\_le](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_ge_le/)
:   Assert that a value falls within given bounds.

[assert\_ge\_lt](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_ge_lt/)
:   Assert that a value falls within given bounds.

[assert\_gt](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_gt/)
:   Assert that a value is greater than a given lower bound.

[assert\_gt\_le](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_gt_le/)
:   Assert that a value falls within given bounds.

[assert\_gt\_lt](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_gt_lt/)
:   Assert that a value falls within given bounds.

[assert\_le](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_le/)
:   Assert that a value is less than or equal to a given upper bound.

[assert\_lt](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_lt/)
:   Assert that a value is less than a given upper bound.

[assert\_not\_equals](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_not_equals/)
:   Assert two values are unequal.

[assert\_not\_null](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_not_null/)
:   Assert a value is not null.

[assert\_null](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_null/)
:   Assert a value is null.

[assert\_true](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/assert_true/)
:   Assert a value is true.

[get\_events](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/get_events/)
:   Get all events that were emitted during the construction of the last block.

[nop](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/nop/)
:   Create a no-op test operation call.

[set\_block\_interval](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/set_block_interval/)
:   Set the time interval between future blocks in the blockchain, in milliseconds.

[set\_next\_block\_time](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/set_next_block_time/)
:   Set the timestamp that the next block will have, once built, in milliseconds.

[set\_next\_block\_time\_delta](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/set_next_block_time_delta/)
:   Set the timestamp that the next block will have, once built, relative to the previous block, in

## Properties

[DEFAULT\_FIRST\_BLOCK\_TIME](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/-d-e-f-a-u-l-t_-f-i-r-s-t_-b-l-o-c-k_-t-i-m-e/)
:   The default value for the timestamp of the first block in the blockchain, in milliseconds. Equal to

[DEFAULT\_BLOCK\_INTERVAL](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/-d-e-f-a-u-l-t_-b-l-o-c-k_-i-n-t-e-r-v-a-l/)
:   The default value for the time interval between each block in the blockchain, in milliseconds.

[last\_block\_time](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/last_block_time/)
:   The timestamp of the most recently built block in the blockchain, in milliseconds.

[last\_block\_time\_or\_null](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/last_block_time_or_null/)
:   The timestamp of the most recently built block in the blockchain, in milliseconds.

[next\_block\_time](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/next_block_time/)
:   The timestamp that the next block will have, once built, in milliseconds.

[block\_interval](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/block_interval/)
:   The time interval that will be used to determine the time of the next block to be built.

[BLOCKCHAIN\_SIGNER\_KEYPAIR](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/rell.test/-b-l-o-c-k-c-h-a-i-n_-s-i-g-n-e-r_-k-e-y-p-a-i-r/)
:   The test keypair used to sign all blocks built in the test context.

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/rell.test/index.html)Generated API reference, mirrored from the live docs
