https://github.com/kalloc/ton-emulator-test
https://github.com/kalloc/ton-emulator-test
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kalloc/ton-emulator-test
- Owner: kalloc
- Created: 2023-01-22T23:41:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-22T23:59:33.000Z (over 3 years ago)
- Last Synced: 2025-02-07T20:12:55.407Z (over 1 year ago)
- Language: TypeScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
```