package com.evsuite.hardware import org.junit.Assert.assertFalse import org.junit.Assert.assertTrue import org.junit.Test class AssistBlockTest { @Test fun `the assistance manager's properties are in the block`() { // First and last int, the target speed and the object distance (floats). for (id in intArrayOf(0x2140A101, 0x2140A171, 0x2160A15B, 0x2160A12C, 0x2160A114)) { assertTrue("0x%08X".format(id), AssistBlock.contains(id)) } } @Test fun `other properties are not`() { for (id in intArrayOf( 0x2140A0FF, // the block before 0x2140A201, // the block after 0x11400400, // a standard (system) property 0x2340A101, // not global 0x0140A101, // no group )) { assertFalse("0x%08X".format(id), AssistBlock.contains(id)) } } }