mirror of
https://github.com/keystone-engine/keystone
synced 2026-06-08 15:15:30 +00:00
1149b6b086
* Added support for CSharp * Minor changes to const_generator.py; Moved files according to the output of const_generator.py; Removed non-english comments; * Released keystone after tests
21 lines
701 B
Gherkin
21 lines
701 B
Gherkin
Feature: Compilation
|
|
|
|
Scenario: Compile the nop instruction
|
|
Given An instance of Keystone built for X86 in mode 32
|
|
And The statement(s) "nop"
|
|
When I compile the statement(s) with Keystone
|
|
Then the result is 90
|
|
|
|
Scenario: Compile an invalid instruction
|
|
Given An instance of Keystone built for X86 in mode 32
|
|
And The statement(s) "invalid instruction"
|
|
When I compile the statement(s) with Keystone
|
|
Then The last error is ASM_MNEMONICFAIL
|
|
|
|
Scenario: Compile a jump to label
|
|
Given An instance of Keystone built for X86 in mode 32
|
|
And A dummy symbols resolver
|
|
And The statement(s) "jmp _unknownSymbol;nop;"
|
|
When I compile the statement(s) with Keystone
|
|
Then the result is e9,aa,ab,ab,00,90
|