mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-27 05:44:51 +00:00
Spelling fix
This commit is contained in:
@@ -162,15 +162,15 @@ public class SWFStreamTest {
|
||||
sis.close();
|
||||
}
|
||||
|
||||
float[] uffs = new float[]{200.25f, 0.25f, 255.75f, 50.25f};
|
||||
for (float ff : uffs) {
|
||||
float[] unsignedFloats = new float[]{200.25f, 0.25f, 255.75f, 50.25f};
|
||||
for (float floatValue : unsignedFloats) {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
SWFOutputStream sos = new SWFOutputStream(baos, SWF.DEFAULT_VERSION, Utf8Helper.charsetName);
|
||||
sos.writeUFIXED8(ff);
|
||||
sos.writeUFIXED8(floatValue);
|
||||
sos.close();
|
||||
sis = new SWFInputStream(null, baos.toByteArray());
|
||||
float ff2 = sis.readUFIXED8("test");
|
||||
assertEquals(ff, ff2, "Written and read value not equals. Written: " + ff + " read: " + ff2);
|
||||
assertEquals(floatValue, ff2, "Written and read value not equals. Written: " + floatValue + " read: " + ff2);
|
||||
sis.close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user