Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
cce73e96
Commit
cce73e96
authored
2 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
tests(cucumber): add an end2end test to reproduce bug
#60
parent
3e99e842
No related branches found
No related tags found
1 merge request
!60
fix(account):if new account can't pay NewAccountTax, it must be removed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
end2end-tests/cucumber-features/balance_transfer.feature
+24
-2
24 additions, 2 deletions
end2end-tests/cucumber-features/balance_transfer.feature
with
24 additions
and
2 deletions
end2end-tests/cucumber-features/balance_transfer.feature
+
24
−
2
View file @
cce73e96
Feature
:
Balance transfer
Scenario
:
If alice sends 5 ĞD to Dave, Dave will get 5 ĞD
Given
alice have 10 ĞD
Scenario
:
Create a new account with enough founds
When
alice send 5 ĞD to dave
Then
dave should have 5 ĞD
When
1 block later
"""
The blockchain should automatically withdraw account creation tax (3 ĞD)
"""
Then
dave should have 2 ĞD
Scenario
:
Create a new account without enough founds then retry with enough founds
When
alice send 2 ĞD to eve
Then
eve should have 2 ĞD
When
1 block later
"""
The blockchain should automatically destroy Evec account
because Eve not have enough founds to pay the new account tax
"""
Then
eve should have 0 ĞD
When
alice send 5 ĞD to eve
Then
eve should have 5 ĞD
When
1 block later
"""
The blockchain should automatically withdraw account creation tax (3 ĞD)
"""
Then
eve should have 2 ĞD
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment