diff --git a/test/elite_scoring_rule_test.dart b/test/elite_scoring_rule_test.dart index 9e7e9a5..af5e1c6 100644 --- a/test/elite_scoring_rule_test.dart +++ b/test/elite_scoring_rule_test.dart @@ -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级', () {