File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
jbbp/src/test/java/com/igormaznitsa/jbbp Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 2222import static org .junit .jupiter .api .Assertions .assertTrue ;
2323import static org .junit .jupiter .api .Assertions .fail ;
2424
25-
2625import com .igormaznitsa .jbbp .JBBPNamedNumericFieldMap ;
2726import com .igormaznitsa .jbbp .compiler .JBBPCompiledBlock ;
2827import com .igormaznitsa .jbbp .compiler .JBBPCompiler ;
@@ -205,7 +204,7 @@ public void testExpression_ExpressionWithVariable() {
205204 }
206205
207206 @ Test
208- public void testExpression_MustNotThrowStackOverfow () throws Exception {
207+ public void testExpression_MustNotThrowStackOverflow () throws Exception {
209208 JBBPExpressionEvaluator expr = new JBBPExpressionEvaluator (
210209 "1+(2+(3+(4+(5+(6+(7+(8+(9+(10+(11+(12+(13+(14+(15+(16+(17+(18+(19+(20*2)))))))))))))))))))" ,
211210 null , null );
Original file line number Diff line number Diff line change @@ -48,16 +48,16 @@ public void testWriteReadString() throws Exception {
4848 outLittl .close ();
4949
5050 final byte [] writtenBig = buffBig .toByteArray ();
51- final byte [] writtenLittl = buffLittl .toByteArray ();
51+ final byte [] writtenLittle = buffLittl .toByteArray ();
5252
5353 final String restoredBig = new JBBPBitInputStream (new ByteArrayInputStream (writtenBig ))
5454 .readString (JBBPByteOrder .BIG_ENDIAN );
55- final String restoredLittl = new JBBPBitInputStream (new ByteArrayInputStream (writtenLittl ))
55+ final String restoredLittle = new JBBPBitInputStream (new ByteArrayInputStream (writtenLittle ))
5656 .readString (JBBPByteOrder .LITTLE_ENDIAN );
5757
5858
5959 assertEquals (text , restoredBig , "Iteration#" + i );
60- assertEquals (text , restoredLittl , "Iteration#" + i );
60+ assertEquals (text , restoredLittle , "Iteration#" + i );
6161
6262 buffer .append ((char ) ('A' + rnd .nextInt (11 )));
6363 buffer .append ((char ) ('Б' + rnd .nextInt (22 )));
Original file line number Diff line number Diff line change @@ -525,17 +525,17 @@ public void testConcat() {
525525 }
526526
527527 @ Test
528- public void testReverdeByteOrder_ErrorForZeroByteNumber () {
528+ public void testReverseByteOrder_ErrorForZeroByteNumber () {
529529 assertThrows (IllegalArgumentException .class , () -> JBBPUtils .reverseByteOrder (1234 , 0 ));
530530 }
531531
532532 @ Test
533- public void testReverdeByteOrder_ErrorForTooBigByteNumber () {
533+ public void testReverseByteOrder_ErrorForTooBigByteNumber () {
534534 assertThrows (IllegalArgumentException .class , () -> JBBPUtils .reverseByteOrder (1234 , 9 ));
535535 }
536536
537537 @ Test
538- public void testReverdeByteOrder () {
538+ public void testReverseByteOrder () {
539539 assertEquals (0x0000000000000012L , JBBPUtils .reverseByteOrder (0x0000000000000012L , 1 ));
540540 assertEquals (0x0000000000003412L , JBBPUtils .reverseByteOrder (0x0000000000001234L , 2 ));
541541 assertEquals (0x0000000000563412L , JBBPUtils .reverseByteOrder (0x0000000000123456L , 3 ));
You can’t perform that action at this time.
0 commit comments