Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pambrose authored Aug 27, 2020
1 parent cb55585 commit 7666560
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ language: java

jdk:
#- oraclejdk11
#- openjdk11
- openjdk8
- openjdk11
#- openjdk8

cache:
directories:
Expand Down
3 changes: 3 additions & 0 deletions src/test/kotlin/io/battlesnake/kotlin/SnakeTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class SnakeTest {
fun startTest() {
val json =
"""{"game":{"id":"1551594939037768058", "timeOutMillis":500},"turn":1,"board":{"height":10,"width":10,"food":[{"x":1,"y":1}],
|"hazards":[{"x":2,"y":2}],
|"snakes":[{"id":"you","name":"you","shout":"","health":0,"body":[{"x":2,"y":2}]}]},"you":{"id":"you","name":"you",
|"shout":"","health":0,"body":[{"x":2,"y":2}]}}""".trimMargin()
val request = StartRequest.toObject(json)
Expand All @@ -96,6 +97,7 @@ class SnakeTest {
fun moveTest() {
val json =
"""{"game":{"id":"1551628170849008209", "timeOutMillis":500},"turn":1,"board":{"height":10,"width":10,"food":[{"x":1,"y":1}],
|"hazards":[{"x":2,"y":2}],
|"snakes":[{"id":"you","name":"you","shout":"","health":0,"body":[{"x":2,"y":2}]}]},"you":{"id":"you","name":"you",
|"shout":"","health":0,"body":[{"x":2,"y":2}]}}""".trimMargin()
val request = MoveRequest.toObject(json)
Expand All @@ -109,6 +111,7 @@ class SnakeTest {
fun endTest() {
val json =
"""{"game":{"id":"1551628170849008209", "timeOutMillis":500},"turn":1,"board":{"height":10,"width":10,"food":[{"x":1,"y":1}],
|"hazards":[{"x":2,"y":2}],
|"snakes":[{"id":"you","name":"you","shout":"","health":0,"body":[{"x":2,"y":2}]}]},"you":{"id":"you","name":"you",
|"shout":"","health":0,"body":[{"x":2,"y":2}]}}""".trimMargin()
val request = EndRequest.toObject(json)
Expand Down

0 comments on commit 7666560

Please sign in to comment.