mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-25 22:53:22 +00:00
![Jonathan Coates](/assets/img/avatar_default.png)
Also add a test for rednet message sending. Hopefully gives some of the modem and networking code a little bit of coverage (which is clearly the same as being right :p).
14 lines
410 B
Kotlin
14 lines
410 B
Kotlin
package dan200.computercraft.ingame
|
|
|
|
import dan200.computercraft.ingame.api.GameTest
|
|
import dan200.computercraft.ingame.api.TestContext
|
|
import dan200.computercraft.ingame.api.checkComputerOk
|
|
|
|
class CraftOsTest {
|
|
/**
|
|
* Sends a rednet message to another a computer and back again.
|
|
*/
|
|
@GameTest
|
|
suspend fun `Sends basic rednet messages`(context: TestContext) = context.checkComputerOk(13)
|
|
}
|