test potocol specification

This commit is contained in:
Bixilon 2022-05-21 21:16:12 +02:00
parent 2bdbfff360
commit 9c8bd67c06
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -0,0 +1,39 @@
/*
* Minosoft
* Copyright (C) 2020-2022 Moritz Zwerger
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* This software is not affiliated with Mojang AB, the original developer of Minecraft.
*/
package de.bixilon.minosoft.protocol.protocol
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
internal class ProtocolDefinitionTest {
@Test
fun testTickTime() {
assertEquals(ProtocolDefinition.TICK_TIME, 50)
}
@Test
fun testTicksPerSecond() {
assertEquals(ProtocolDefinition.TICKS_PER_SECOND, 20)
}
@Test
fun testDefaultNamespace() {
assertEquals(ProtocolDefinition.DEFAULT_NAMESPACE, "minecraft")
}
@Test
fun testSectionSize() {
assertEquals(ProtocolDefinition.BLOCKS_PER_SECTION, 4096)
}
}