public void test09() { float expectedOutput = 3.141592F; F4SECSItem secsItem = new F4SECSItem(expectedOutput); Assert.IsTrue(secsItem.getValue() == expectedOutput); }
public void test06() { byte[] input = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.F4) << 2) | 0x01), 0x04, 127, 128, 0, 0 }; float expectedOutput = Single.PositiveInfinity; F4SECSItem secsItem = new F4SECSItem(input, 0); Assert.IsTrue(secsItem.getValue() == expectedOutput); }
public void test08() { byte[] input = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.F4) << 2) | 0x01), 0x04, 0, 0, 0, 0 }; float expectedOutput = 0.0F; F4SECSItem secsItem = new F4SECSItem(input, 0); Assert.IsTrue(secsItem.getValue() == expectedOutput); }
public void test04() { byte[] input = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.F4) << 2) | 0x01), 0x04, 255, 127, 255, 255 }; float expectedOutput = Single.MinValue; F4SECSItem secsItem = new F4SECSItem(input, 0); Assert.IsTrue(secsItem.getValue() == expectedOutput); }