From c201271bbfbe2c24b72b9243b2f45549af9203bc Mon Sep 17 00:00:00 2001 From: ltx <1006158920@qq.com> Date: Fri, 9 Oct 2026 13:40:11 +0800 Subject: [PATCH] =?UTF-8?q?update=EF=BC=9A=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/elite_scoring_rule_test.dart | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) 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级', () {