Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(drink test): assert last event #370

Conversation

chungquantin
Copy link
Collaborator

@chungquantin chungquantin commented Nov 4, 2024

Changes made to the pop-api crate for the assert_last_event! macro in pop-drink

Require this PR to be merged to pop-drink/main: r0gue-io/pop-drink#25

Outcome

---- tests::transfer_works stdout ----
thread 'tests::transfer_works' panicked at tests.rs:228:5:
assertion `left == right` failed
left: Transfer { from: Some(AccountId([173, 100, 34, 109, 10, 153, 156, 207, 68, 34, 52, 155, 110, 41, 181, 130, 49, 109, 253, 15, 182, 64, 22, 194, 42, 213, 101, 242, 31, 229, 155, 97])), to: Some(AccountId([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2])), value: 10000 }
right: Transfer { from: Some(AccountId([173, 100, 34, 109, 10, 153, 156, 207, 68, 34, 52, 155, 110, 41, 181, 130, 49, 109, 253, 15, 182, 64, 22, 194, 42, 213, 101, 242, 31, 229, 155, 97])), to: Some(AccountId([2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2])), value: 10001 }

@codecov-commenter
Copy link

codecov-commenter commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.60%. Comparing base (4a7a320) to head (efd7b31).
Report is 5 commits behind head on chungquantin/feat-psp22_example.

@@                       Coverage Diff                        @@
##           chungquantin/feat-psp22_example     #370   +/-   ##
================================================================
  Coverage                            51.60%   51.60%           
================================================================
  Files                                   48       48           
  Lines                                 4910     4910           
  Branches                              4910     4910           
================================================================
  Hits                                  2534     2534           
  Misses                                2327     2327           
  Partials                                49       49           

@chungquantin chungquantin changed the title feat: assert last event feat(drink test): assert last event Nov 4, 2024
Copy link
Collaborator

@Daanvdplas Daanvdplas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice

@chungquantin chungquantin merged commit 09311d4 into chungquantin/feat-psp22_example Nov 5, 2024
12 checks passed
@chungquantin chungquantin deleted the chungquantin/feat-assert_last_event branch November 5, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants