update:测试用例
This commit is contained in:
parent
00f7da64e2
commit
c201271bbf
@ -30,26 +30,55 @@ void main() {
|
||||
});
|
||||
});
|
||||
|
||||
test('交互绳DJ与DT展示不同的难度等级', () {
|
||||
test('交互绳DJ含0级间歇,DJ与DT的1至5级均含减、标准、加档', () {
|
||||
final dj = JudgeAccounts.find('DD-DJ1')!;
|
||||
final dt = JudgeAccounts.find('DD-DT1')!;
|
||||
|
||||
expect(EliteScoringRuleCatalog.difficultyLevels(dj), [
|
||||
'0',
|
||||
'1-',
|
||||
'1',
|
||||
'1+',
|
||||
'2-',
|
||||
'2',
|
||||
'2+',
|
||||
'3-',
|
||||
'3',
|
||||
'3+',
|
||||
'4-',
|
||||
'4',
|
||||
'4+',
|
||||
'5-',
|
||||
'5',
|
||||
'5+',
|
||||
]);
|
||||
expect(EliteScoringRuleCatalog.difficultyLevels(dt), [
|
||||
'1-',
|
||||
'1',
|
||||
'1+',
|
||||
'2-',
|
||||
'2',
|
||||
'2+',
|
||||
'3-',
|
||||
'3',
|
||||
'3+',
|
||||
'4-',
|
||||
'4',
|
||||
'4+',
|
||||
'5-',
|
||||
'5',
|
||||
'5+',
|
||||
]);
|
||||
expect(CompetitionRuleCalculator.exponentialDifficultyValue('3'), 3.375);
|
||||
expect(CompetitionRuleCalculator.exponentialDifficultyValue('0'), 0);
|
||||
expect(
|
||||
CompetitionRuleCalculator.exponentialDifficultyValue('3-'),
|
||||
lessThan(CompetitionRuleCalculator.exponentialDifficultyValue('3')),
|
||||
);
|
||||
expect(
|
||||
CompetitionRuleCalculator.exponentialDifficultyValue('3+'),
|
||||
greaterThan(CompetitionRuleCalculator.exponentialDifficultyValue('3')),
|
||||
);
|
||||
});
|
||||
|
||||
test('表演赛A组与B组按规则展示独立难度类别和0至8级', () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user