File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
plugin2025/src/test/kotlin/sc/plugin2025 Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -214,14 +214,28 @@ class MoveTest: WordSpec({
214
214
}
215
215
216
216
" Move" should {
217
- " produce a nice room message" {
217
+ " produce concise room message" {
218
+ RoomPacket ("abcd", EatSalad ) shouldSerializeTo """
219
+ <room roomId="abcd">
220
+ <data class="eatsalad"/>
221
+ </room>
222
+ """ .trimIndent()
223
+ }
224
+ " produce concise room message for carrots" {
225
+ RoomPacket ("abcd", ExchangeCarrots (-10)) shouldSerializeTo """
226
+ <room roomId="abcd">
227
+ <data class="exchangecarrots" amount="-10"/>
228
+ </room>
229
+ """ .trimIndent()
230
+ }
231
+ " produce concise room message for advance" {
218
232
RoomPacket ("abcd", Advance (3)) shouldSerializeTo """
219
233
<room roomId="abcd">
220
234
<data class="advance" distance="3"/>
221
235
</room>
222
236
""" .trimIndent()
223
237
}
224
- " serialize Advance properly " {
238
+ " serialize full Advance " {
225
239
Advance (5, Card .EAT_SALAD ) shouldSerializeTo """
226
240
<advance distance="5">
227
241
<card>EAT_SALAD</card>
You can’t perform that action at this time.
0 commit comments