summaryrefslogtreecommitdiffstats
path: root/spec/fln_bot_rules_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-12-04 11:40:14 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-12-04 11:40:14 +0100
commit420487be4001873a7168db25fc6a52f4fe6fabcd (patch)
tree2d2341c71e7e3c5852ba1591da4eb625b4baf221 /spec/fln_bot_rules_spec.rb
parent9be45071168928c2ad3b2a184c2a3c9e7183040a (diff)
downloadcolonial-twilight-420487be4001873a7168db25fc6a52f4fe6fabcd.zip
colonial-twilight-420487be4001873a7168db25fc6a52f4fe6fabcd.tar.gz
FLNBotRules : fix rally_9_priority with infinite resources
Diffstat (limited to 'spec/fln_bot_rules_spec.rb')
-rw-r--r--spec/fln_bot_rules_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/fln_bot_rules_spec.rb b/spec/fln_bot_rules_spec.rb
index 2fe0216..2d46f0b 100644
--- a/spec/fln_bot_rules_spec.rb
+++ b/spec/fln_bot_rules_spec.rb
@@ -463,6 +463,13 @@ describe ColonialTwilight::FLNBotRules do
c = Sector.new(terror: 2, neutral: true)
expect(@rules.rally_9_priority([a, b, c], 3)[0]).to be c
end
+
+ it 'rally_9_priority infinite resources' do
+ a = Sector.new(terror: 1, oppose: true)
+ b = Sector.new(terror: 3, support: true)
+ c = Sector.new(terror: 2, support: true)
+ expect(@rules.rally_9_priority([a, b, c], 0).size).to be 2
+ end
end
describe 'Extort' do