UNPKG
evm
Version:
latest (0.2.0)
0.2.0
0.1.1
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
An ethereum virtual machine (EVM) bytecode decompiler
github.com/MrLuit/evm
MrLuit/evm
evm
/
tests
/
opcodes
/
stop.ts
13 lines
(11 loc)
•
311 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
'mocha'
;
import
{ expect }
from
'chai'
;
import
EVM
from
'../../src/classes/evm.class'
;
describe
(
'STOP'
,
() =>
{
it
(
'should halt'
,
() =>
{
const
evm =
new
EVM
(
'0x00'
);
expect
(evm.
halted
).
to
.
be
.
false
; evm.
parse
();
expect
(evm.
halted
).
to
.
be
.
true
; }); });