An open API service indexing awesome lists of open source software.

https://github.com/kalloc/ton-emulator-test


https://github.com/kalloc/ton-emulator-test

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# Ton-emulator & Sandbox test example

## Lazy links

- [FunC code](https://github.com/kalloc/ton-emulator-test/blob/master/func/1.counter/code.fc)
- [Test on Sandbox](https://github.com/kalloc/ton-emulator-test/blob/master/test/1.counter.sandbox.test.ts)
- [Test on Ton-Emulator](https://github.com/kalloc/ton-emulator-test/blob/master/test/1.counter.ton-emulator.test.ts#L90-L117)

## Output

```bash
$ ts-mocha './test/*.test.ts'

1 & 2: Counter: Sandbox
✔ should work (1281ms)

1 & 2: Counter: Ton Emulator
✔ get_unknown_method
✔ get_total
1) send n

3 passing (2s)
1 failing

1) 1 & 2: Counter: Ton Emulator
send n:

AssertionError: expected +0 to equal 10
+ expected - actual

-0
+10

at Context. (test/1.counter.ton-emulator.test.ts:121:33)

```