Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Goshimmer_without_tipselection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
COLLET Ismael
Goshimmer_without_tipselection
Commits
2909a601
Commit
2909a601
authored
5 years ago
by
Hans Moog
Browse files
Options
Downloads
Patches
Plain Diff
Docs: fixed some comments
parent
730f99b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/mana/calculator_test.go
+2
-2
2 additions, 2 deletions
packages/mana/calculator_test.go
with
2 additions
and
2 deletions
packages/mana/
mana
_test.go
→
packages/mana/
calculator
_test.go
+
2
−
2
View file @
2909a601
...
...
@@ -30,12 +30,12 @@ func TestCalculator_GenerateMana(t *testing.T) {
func
TestCalculator_ManaSymmetry
(
t
*
testing
.
T
)
{
calculator
:=
NewCalculator
(
500
,
0.1
,
ManaScaleFactor
(
2
))
// 1st case: generate mana by spending
two
times
// 1st case: generate mana by spending
multiple
times
generatedManaStep1
,
_
:=
calculator
.
GenerateMana
(
1000
,
500
)
generatedManaStep2
,
_
:=
calculator
.
GenerateMana
(
1000
,
500
)
generatedManaStep3
,
_
:=
calculator
.
GenerateMana
(
1000
,
500
)
// the first "realized" mana part starts decaying while the coins of the
2nd
spend are gaining weight again
// the first "realized" mana part
s
starts decaying while the coins of the
last
spend are gaining weight again
erodedMana1
,
_
:=
calculator
.
ErodeMana
(
generatedManaStep1
,
1000
)
erodedMana2
,
_
:=
calculator
.
ErodeMana
(
generatedManaStep2
,
500
)
...
...
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