mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-19 04:15:14 -04:00
test potocol specification
This commit is contained in:
parent
2bdbfff360
commit
9c8bd67c06
@ -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)
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user