Merge branch 'develop' into release/1.1.0
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
14
.drone.yml
Normal file
14
.drone.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Android
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: mingc/android-build-box
|
||||||
|
commands:
|
||||||
|
- ./gradlew build
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
@@ -33,25 +33,6 @@ class RoundUnitTest
|
|||||||
inputScoreB+=5
|
inputScoreB+=5
|
||||||
}
|
}
|
||||||
|
|
||||||
// Team a +100 points for Tichu
|
|
||||||
inputScoreA=125 + 100
|
|
||||||
inputScoreB=-25
|
|
||||||
|
|
||||||
// Normal round range -25 to 125 as input
|
|
||||||
while (inputScoreB <= 125)
|
|
||||||
{
|
|
||||||
temp=Round(inputScoreA , true)
|
|
||||||
assertEquals(inputScoreB , temp.scoreB)
|
|
||||||
assertTrue(temp.isValidRound())
|
|
||||||
|
|
||||||
temp=Round(inputScoreA , false)
|
|
||||||
assertEquals(inputScoreB , temp.scoreA)
|
|
||||||
assertTrue(temp.isValidRound())
|
|
||||||
|
|
||||||
inputScoreA-=5
|
|
||||||
inputScoreB+=5
|
|
||||||
}
|
|
||||||
|
|
||||||
// Double win
|
// Double win
|
||||||
temp=Round(200 , true)
|
temp=Round(200 , true)
|
||||||
assertEquals(0 , temp.scoreB)
|
assertEquals(0 , temp.scoreB)
|
||||||
|
|||||||
Reference in New Issue
Block a user