Skip to content

Commit 1f135ef

Browse files
committed
improved test
1 parent 622da78 commit 1f135ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jbbp/src/test/java/com/igormaznitsa/jbbp/compiler/conversion/JBBPToJBBPToJava6ConverterExpressionTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ public void testShifts() throws Exception {
8181
@Test
8282
public void testBrackets() throws Exception {
8383
assertExpression(3*(9/2), "3*(9/2)");
84+
assertExpression(3*9/2, "3*9/2");
85+
assertExpression(3*9/2, "(3*9)/2");
8486
}
8587

8688
@Test
@@ -99,12 +101,12 @@ public void testSynthesidExpression() throws Exception {
99101

100102
int rightCounter = 0;
101103

102-
for(int i=0;i<1000;i++){
104+
for(int i=0;i<1500;i++){
103105
final StringBuilder buffer = new StringBuilder();
104106
if (rnd.nextInt(100)>60) {
105107
buffer.append(operatorsOne[rnd.nextInt(operatorsOne.length)]);
106108
}
107-
buffer.append(1+rnd.nextInt(100));
109+
buffer.append(1+rnd.nextInt(200));
108110

109111
buffer.append(operatorsTwo[rnd.nextInt(operatorsTwo.length)]);
110112

0 commit comments

Comments
 (0)