-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[diem-transactional-tests] migrate natives tests
- Loading branch information
1 parent
7d3918b
commit 98af2df
Showing
7 changed files
with
79 additions
and
27 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
diem-move/diem-framework/core/transactional-tests/events/event_emit_struct.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
processed 3 tasks | ||
|
||
task 2 'run'. lines 18-25: | ||
Events:{ | ||
key: 0400000000000000c5e34b925cf6875fec02d4b77adbd2d6 | ||
seq_num: 0 | ||
type: 0xc5e34b925cf6875fec02d4b77adbd2d6::M::MyEvent | ||
data: "01" | ||
} | ||
{ | ||
key: 01000000000000000000000000000000000000000a550c18 | ||
seq_num: 0 | ||
type: 0x1::DiemAccount::AdminTransactionEvent | ||
data: "0000000000000000" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...ove/diem-framework/core/transactional-tests/events/event_emit_struct_with_type_params.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
processed 3 tasks | ||
|
||
task 2 'run'. lines 18-25: | ||
Events:{ | ||
key: 0400000000000000c5e34b925cf6875fec02d4b77adbd2d6 | ||
seq_num: 0 | ||
type: 0xc5e34b925cf6875fec02d4b77adbd2d6::M::MyEvent<u64, bool> | ||
data: "01" | ||
} | ||
{ | ||
key: 01000000000000000000000000000000000000000a550c18 | ||
seq_num: 0 | ||
type: 0x1::DiemAccount::AdminTransactionEvent | ||
data: "0000000000000000" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
diem-move/diem-framework/core/transactional-tests/events/event_emit_u64.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
processed 2 tasks | ||
|
||
task 1 'run'. lines 5-14: | ||
Events:{ | ||
key: 0400000000000000c5e34b925cf6875fec02d4b77adbd2d6 | ||
seq_num: 0 | ||
type: u64 | ||
data: "2a00000000000000" | ||
} | ||
{ | ||
key: 01000000000000000000000000000000000000000a550c18 | ||
seq_num: 0 | ||
type: 0x1::DiemAccount::AdminTransactionEvent | ||
data: "0000000000000000" | ||
} |
14 changes: 14 additions & 0 deletions
14
diem-move/diem-framework/core/transactional-tests/events/event_emit_u64.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//# init --parent-vasps Alice | ||
|
||
// TODO: this should be a Move test. Make it so after we fix the infrastructure. | ||
|
||
//# run --admin-script --signers DiemRoot Alice --show-events | ||
script { | ||
use Std::Event; | ||
|
||
fun main(_dr: signer, account: signer) { | ||
let handle = Event::new_event_handle<u64>(&account); | ||
Event::emit_event(&mut handle, 42); | ||
Event::destroy_handle(handle); | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
language/move-compiler/functional-tests/tests/diem/natives/event_emit_u64.move
This file was deleted.
Oops, something went wrong.