mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-26 11:56:27 -08:00
allow a single spine tracker to control the whole spine without warning
This commit is contained in:
1 parent
c30efd2317
commit
753fdb527e
3 files changed
+9
-13
No files matched your search
@@ -74,13 +74,10 @@ class BodyPartPrerequisitesTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `the top of the spine stands on its own and the rest of it looks upwards`() {
|
||||
assertEquals(emptyList(), bodyPartPrerequisites(BodyPart.UPPER_CHEST))
|
||||
assertEquals(listOf(listOf(BodyPart.UPPER_CHEST)), bodyPartPrerequisites(BodyPart.LOWER_CHEST))
|
||||
assertEquals(
|
||||
listOf(listOf(BodyPart.UPPER_CHEST, BodyPart.LOWER_CHEST, BodyPart.UPPER_WAIST, BodyPart.LOWER_WAIST)),
|
||||
bodyPartPrerequisites(BodyPart.HIP),
|
||||
)
|
||||
fun `a spine bone stands on its own`() {
|
||||
for (bodyPart in spineParts) {
|
||||
assertEquals(emptyList(), bodyPartPrerequisites(bodyPart), "$bodyPart should stand alone")
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user