Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
cmichi committed Jun 26, 2019
commit e3dba7fe480c07a2605eb847d2db2f3cf2499c22
5 changes: 4 additions & 1 deletion core/sr-api-macros/tests/runtime_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ fn returns_mutable_static() {
let ret = runtime_api.returns_mutable_static(&block_id).unwrap();
assert_eq!(ret, 33);

// We expect that every invocation will need to return the initial
// value plus one. If the value increases more than that then it is
// a sign that the wasm runtime preserves the memory content.
let ret = runtime_api.returns_mutable_static(&block_id).unwrap();
assert_eq!(ret, 34);
assert_eq!(ret, 33);
}