Skip to content

Example of a test with the unhappy path#9

Merged
Arvolear merged 4 commits into
devfrom
feat/unhappy-path-for-asserts
May 30, 2026
Merged

Example of a test with the unhappy path#9
Arvolear merged 4 commits into
devfrom
feat/unhappy-path-for-asserts

Conversation

@aritkulova
Copy link
Copy Markdown
Collaborator

No description provided.

@aritkulova aritkulova self-assigned this May 25, 2026
Comment thread tests/asserts_test.rs
let txid_result = spend_script(&context, flag);

assert!(
txid_result.is_err(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we have info about which error is being thrown to check against it? Not just a random is_err.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good point

Copy link
Copy Markdown
Member

@Arvolear Arvolear left a comment

Choose a reason for hiding this comment

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

Look good.

@Arvolear Arvolear merged commit 03b5ba7 into dev May 30, 2026
1 check failed
@Arvolear Arvolear deleted the feat/unhappy-path-for-asserts branch May 30, 2026 19:10
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.

2 participants