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
Merge requests
!89
test: joiner comes after reevaluations
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
test: joiner comes after reevaluations
test/ud-for-joiner-after-reeval
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Cédric Moreau
requested to merge
test/ud-for-joiner-after-reeval
into
master
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Just a simple test, mentionned
in this thread
.
0
0
Merge request reports
Compare
master
version 1
fe3b2ccb
2 years ago
master (base)
and
latest version
latest version
d01fd633
1 commit,
2 years ago
version 1
fe3b2ccb
1 commit,
2 years ago
1 file
+
13
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
pallets/universal-dividend/src/compute_claim_uds.rs
+
13
−
0
Options
@@ -96,4 +96,17 @@ mod tests {
@@ -96,4 +96,17 @@ mod tests {
(
1
,
1_000
)
(
1
,
1_000
)
);
);
}
}
#[test]
fn
ud_for_joiner_after_reeval
()
{
let
past_reevals
=
vec!
[
(
1
,
1_000
as
Balance
),
(
2
,
10_000
as
Balance
),
(
3
,
100_000
as
Balance
),
];
assert_eq!
(
compute_claim_uds
(
4
,
2
,
past_reevals
.into_iter
()),
(
2
,
110_000
)
);
}
}
}
Loading