Spelling fix

This commit is contained in:
Jindra Petřík
2026-02-09 19:14:12 +01:00
parent 7ee792cef2
commit 7e78b8094c
22 changed files with 48 additions and 49 deletions

View File

@@ -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();
}
}