# \#test\_scenario

**URL:** https://forums.sui.io/tag/test-scenario/23.md

[Latest](https://forums.sui.io/latest.md) · [Categories](https://forums.sui.io/categories.md) · [Tags](https://forums.sui.io/tags.md)

---

## [Testing Issue: Unable to Take SUI Coin from Address in Test Scenario \[EEmptyInventory\]](https://forums.sui.io/t/testing-issue-unable-to-take-sui-coin-from-address-in-test-scenario-eemptyinventory/47903)

<div class="topic-metadata">

**Author:** [@Joewi](https://forums.sui.io/u/Joewi)\
**Replies:** 1\
**Last updated:** [April 6, 2025, 5:35pm UTC](https://forums.sui.io/t/testing-issue-unable-to-take-sui-coin-from-address-in-test-scenario-eemptyinventory/47903 "2025-04-06T17:35:19Z")

</div>

So I have a function that takes sui\_coin as an arg so I am trying to write test for it public entry fun create\_offer( currency\_code: vector\<u8\>, price: u64, payment\_type: vector\<u8\>, sui\_…

---

## [Error when writing test cases with Move - Unbound Module Member](https://forums.sui.io/t/error-when-writing-test-cases-with-move-unbound-module-member/47715)

<div class="topic-metadata">

**Author:** [@jinali98](https://forums.sui.io/u/jinali98)\
**Replies:** 0\
**Last updated:** [March 15, 2025, 8:32am UTC](https://forums.sui.io/t/error-when-writing-test-cases-with-move-unbound-module-member/47715 "2025-03-15T08:32:32Z")

</div>

when writing test cases within a move module as below #\[test\] fun test\_module\_init() { use sui::test\_scenario; let creator = @0x1; let testvalue = 1; let expectedvalue = 1; assert!(testvalue =…

---

## [Transaction effects show many deleted objects while I did not delete any, where do these object IDs come from?](https://forums.sui.io/t/transaction-effects-show-many-deleted-objects-while-i-did-not-delete-any-where-do-these-object-ids-come-from/45089)

<div class="topic-metadata">

**Author:** [@GCB](https://forums.sui.io/u/GCB)\
**Replies:** 1\
**Last updated:** [November 3, 2023, 5:42pm UTC](https://forums.sui.io/t/transaction-effects-show-many-deleted-objects-while-i-did-not-delete-any-where-do-these-object-ids-come-from/45089 "2023-11-03T17:42:15Z")

</div>

The transaction effects returned from a test\_scenario::next\_tx look as follows: \[debug\] 0x2::test\_scenario::TransactionEffects { created: \[\], written: \[ 0x2::object::ID { bytes: @0xd726ecf6f7036ee3557cd6c7…

---

## [SUI move programming model: Choosing between return value (boolean, option ) VS assert!](https://forums.sui.io/t/sui-move-programming-model-choosing-between-return-value-boolean-option-vs-assert/44833)

<div class="topic-metadata">

**Author:** [@channa](https://forums.sui.io/u/channa)\
**Replies:** 2\
**Last updated:** [July 5, 2023, 10:19pm UTC](https://forums.sui.io/t/sui-move-programming-model-choosing-between-return-value-boolean-option-vs-assert/44833 "2023-07-05T22:19:29Z")

</div>

I am a bit unclear about the SUI programming model on how to handle smart contract execution status. Imagine, I have a module to issue an NFTCard with a max supply, once the max supply is reached, the minting should fail…
