aleoflow 0.1.1

A developer CLI for Aleo — scaffold, build, test, audit, deploy, and generate TypeScript bindings for Leo programs.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Test file for the {{PROJECT_NAME}} payment program.
// Tests: transfer returns the amount unchanged for a valid input.

import {{PROJECT_NAME}}.aleo;

program test_program.aleo {
    @noupgrade
    constructor() {}

    @test
    fn test_transfer() {
        let result = {{PROJECT_NAME}}.aleo::transfer(100u64);
        assert_eq(result, 100u64);
    }
}