feat: initialize GaCy Android project foundation (Kotlin, Jetpack Compose, Material 3)

This commit is contained in:
CAtlas0784 committed 2026-10-31 17:36:42 +07:00
commit 3eab1e7e49
61 files changed
+5821

No files matched your search

@@ -0,0 +1,41 @@
package com.gacy.android
import com.gacy.android.model.SceneConfig
import com.gacy.android.model.TrailblazerConfig
import org.json.JSONObject
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Test
class ModelAndConfigTest {
@Test
fun testSceneConfigSerialization() {
val config = SceneConfig(
planeId = 20572,
x = 10000,
y = 20000,
z = 30000,
mapLayer = 1
)
val json = config.toJsonObject()
assertEquals(20572L, json.getLong("plane_id"))
assertEquals(10000L, json.getLong("x"))
assertEquals(20000L, json.getLong("y"))
assertEquals(30000L, json.getLong("z"))
val deserialized = SceneConfig.fromJsonObject(json)
assertEquals(config.planeId, deserialized.planeId)
assertEquals(config.x, deserialized.x)
assertEquals(config.y, deserialized.y)
assertEquals(config.z, deserialized.z)
}
@Test
fun testTrailblazerConfig() {
val tb = TrailblazerConfig(gender = "Female", tbPath = "Elation", marchPath = "Hunt")
assertEquals("Female", tb.gender)
assertEquals("Elation", tb.tbPath)
assertEquals("Hunt", tb.marchPath)
}
}