fix build and tests

This commit is contained in:
Erimel committed 2026-09-09 17:34:41 -04:00
1 parent 99de177797
commit 2c1bce29c2
6 files changed
+11 -12

No files matched your search

@@ -117,7 +117,7 @@ fun buildTestSkeleton(scope: CoroutineScope): Skeleton {
onBufferOverflow = BufferOverflow.DROP_OLDEST,
)
computed.tryEmit(buildBones(context.state.value.boneInputs))
val skeleton = Skeleton(context, buildTestSettings(scope), computed)
val skeleton = Skeleton(context, computed, emptySet())
skeleton.startObserving()
return skeleton
}
@@ -21,8 +21,7 @@ import kotlin.test.assertNotNull
import kotlin.test.assertTrue
import kotlin.time.Duration.Companion.seconds
private fun assertApprox(expected: Vector3, actual: Vector3, message: String = "") =
vectorAssertEquals(expected, actual, message = message)
private fun assertApprox(expected: Vector3, actual: Vector3, message: String = "") = vectorAssertEquals(expected, actual, message = message)
// Quaternions q and -q represent the same rotation, so either sign is an acceptable match.
private fun assertApprox(expected: Quaternion, actual: Quaternion, message: String = "") {
@@ -63,8 +63,7 @@ private fun transformArgs(name: String, pos: Vector3, rot: Quaternion): List<Osc
private fun bundleOf(vararg messages: OscMessage) = OscBundle(1L, messages.map { OscContent.Message(it) })
private fun boneBundle(unityName: String, pos: Vector3, rot: Quaternion) =
bundleOf(OscMessage("/VMC/Ext/Bone/Pos", transformArgs(unityName, pos, rot)))
private fun boneBundle(unityName: String, pos: Vector3, rot: Quaternion) = bundleOf(OscMessage("/VMC/Ext/Bone/Pos", transformArgs(unityName, pos, rot)))
// Quaternions q and -q represent the same rotation, so either sign is an acceptable match.
private fun assertApprox(expected: Quaternion, actual: Quaternion) {