cord icon indicating copy to clipboard operation
cord copied to clipboard

[C4GT] Asset: Add tests for `AssetInSameState`

Open vatsa287 opened this issue 1 year ago • 4 comments

Description

Subtask under : https://github.com/cord-network/community/issues/7

New testcase can be tested under cargo test -p pallet-asset after adding it in the code.

Goals

  • [ ] Add tests for AssetInSameState for pallet/asset

Expected Outcome

  • [ ] Test should assert for AssetInSameState being returned properly in all the possible calls.
  • [ ] If there are more than one function returning this error code, all of them should be validated either as one test case or as multiple test cases.

Acceptance Criteria

NA

Implementation Details

Look at other test cases, and add a test case for the same. Ex: check method asset_create_should_succeed which validates creation of asset.

Mockups / Wireframes

NA


Product Name

CORD

Organization Name

Dhiway

Domain

Blockchain

Tech Skills Needed

Rust

Mentor(s)

@amarts @vatsa287

Complexity

[Low]

Category

[Test]

Sub Category

[Beginner friendly]

vatsa287 avatar Mar 12 '24 07:03 vatsa287

@vatsa287 please assign this issue to me

Aloneking789 avatar Mar 25 '24 14:03 Aloneking789

please assign this issue to me

Sriramkashyapks avatar Mar 27 '24 10:03 Sriramkashyapks

@vatsa287 I would like to contribute to this project, can you assign me this issue?

summerpun2803 avatar Apr 11 '24 21:04 summerpun2803

Hey @vatsa287 , I had already raised a PR on the issue

zeel991 avatar Apr 13 '24 18:04 zeel991