Skip to content

Unit test Cases for Revert Staking, Minting, Revert Redemption, Revert Unstaking - #74

Merged
benjaminbollen merged 8 commits into
developfrom
unit_test_revert
Dec 22, 2017
Merged

Unit test Cases for Revert Staking, Minting, Revert Redemption, Revert Unstaking#74
benjaminbollen merged 8 commits into
developfrom
unit_test_revert

Conversation

@abhayks1

Copy link
Copy Markdown
Contributor

No description provided.

@benjaminbollen benjaminbollen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please correct to BT (currently said to be BT but is BT Wei);

Comment thread contracts/OpenSTValue.sol
// processed the unstaking, ie unstake has not been deleted
require(unstake.expirationHeight > 0);
require(unstake.expirationHeight <= block.number);
// require that the unstake has expired and that the redeemer has not

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we will need to discuss a standard and then implement a Linter check in the CI (to be put in place); for now OK, but the editors fighting is really not clean on the origin repo

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey Ben, me, deepesh and abhay have synched are tab space to two. We can decide on which linter to use as we all use different editors for coding.

Comment thread test/OpenSTUtility.js Outdated

var stakeAmountST = 1,
convertedAmountBT = (stakeAmountST*conversionRate),
redemptionAmountBT = 2, // How many Branded tokens to redeem

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is in BT Wei, not BT; please correct to BT

@benjaminbollen benjaminbollen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks; Let's create a ticket to do a full scan of all ST vs STWei corrections for the unit and integration tests

Comment thread test/OpenSTValue.js

var staker = accounts[0];
var owner = accounts[1];
var amountST = 126;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should do full scan of unit tests of consistent use of ST vs STWei (UT vs UTWei, BT vs BTWei)

@benjaminbollen

Copy link
Copy Markdown
Contributor

closes #45
closes #67
closes #68
closes #69

@benjaminbollen
benjaminbollen merged commit 8eb39a1 into develop Dec 22, 2017
@benjaminbollen
benjaminbollen deleted the unit_test_revert branch December 22, 2017 13:51
@jasonklein jasonklein modified the milestones: v0.9.3, v0.9.2 Mar 27, 2018
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.

4 participants