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

R21BC-190, R21BC-191, R21BC-192 #23

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

jess-xinyi
Copy link

Extended negative test case for:

  • blockchain service
  • mosaic service
  • network service

@jess-xinyi jess-xinyi requested a review from Cempl October 18, 2021 07:44
@@ -37,6 +42,55 @@ namespace xpx_chain_sdk::tests {
EXPECT_FALSE(block.data.blockTransactionsHash.empty());
EXPECT_FALSE(block.data.stateHash.empty());
EXPECT_TRUE(block.data.difficulty > 0);

Copy link

Choose a reason for hiding this comment

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

extra empty line = )

EXPECT_FALSE(block.data.blockTransactionsHash.empty());
EXPECT_FALSE(block.data.stateHash.empty());
EXPECT_TRUE(block.data.difficulty > 0);

Copy link

Choose a reason for hiding this comment

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

extra empty line = )

}
}, xpx_chain_sdk::InvalidRequest);
}
TEST(TEST_CLASS, getMosaicInfo_max) {
Copy link

Choose a reason for hiding this comment

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

Add empty line before start of test, please = )

}

//TEST PASSED WITH LIMIT=0
Copy link

Choose a reason for hiding this comment

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

Try to investigate same test on go-sdk side, please = )

std::vector<xpx_chain_sdk::MosaicId> mosaicIds{ 0 };

MosaicNames mosaicNames = client->mosaics()->getMosaicsNames(mosaicIds);
EXPECT_FALSE(mosaicNames.names.empty()); // ?
Copy link

Choose a reason for hiding this comment

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

I suppose you can add new mosaics for the client and request created mosaics after.

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