forked from aptos-labs/aptos-core
-
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.
Fixed the display of signer values in the error trace in Prover
- This PR fixes the signer value display in the error trace. For example, ``` = at signer_display.move:5: f_incorrect = account = signer{0x2} ``` Closes: aptos-labs#8989
- Loading branch information
1 parent
122c9d4
commit f936955
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
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
10 changes: 10 additions & 0 deletions
10
language/move-prover/tests/sources/functional/signer_display.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,10 @@ | ||
Move prover returns: exiting with boogie verification errors | ||
error: unknown assertion failed | ||
┌─ tests/sources/functional/signer_display.move:7:13 | ||
│ | ||
7 │ assert Signer::spec_address_of(account) == @0x1; | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
│ | ||
= at tests/sources/functional/signer_display.move:5: f_incorrect | ||
= account = <redacted> | ||
= at tests/sources/functional/signer_display.move:7: f_incorrect |
10 changes: 10 additions & 0 deletions
10
language/move-prover/tests/sources/functional/signer_display.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,10 @@ | ||
module 0x42::SignerDisplay { | ||
use Std::Signer; | ||
|
||
// Test the signer value display in the error trace | ||
fun f_incorrect(account: &signer) { | ||
spec { | ||
assert Signer::spec_address_of(account) == @0x1; | ||
} | ||
} | ||
} |