Menu

#413 1.9.3.9 net.sf.robocode.test.robots.TestDuplicatesAndScore fails

Future Release
closed
nobody
None
1
2023-02-26
2020-06-25
Xor
No

after upgrading to 19.3.9, net.sf.robocode.test.robots.TestDuplicatesAndScore fails

a ram score is expected 0 but actual is 1

Discussion

  • Xor

    Xor - 2020-06-25

    Platform Java 11 macOS 10.15.5

     
  • Xor

    Xor - 2020-06-25

    actually this is producing very different result on my machine

    I'm sure this is caused by some changes between 1.9.3.5 and 1.9.3.9,
    because this test works fine before that

    This test isn't stable any more in this version

            Assert.assertThat(results[0].getLastSurvivorBonus(), is(0));
            Assert.assertThat(results[1].getLastSurvivorBonus(), is(50));
            Assert.assertThat(results[2].getLastSurvivorBonus(), is(0));
            Assert.assertThat(results[3].getLastSurvivorBonus(), is(0));
    
            Assert.assertThat(results[0].getRamDamage(), is(1));
            Assert.assertThat(results[1].getRamDamage(), is(5));
            Assert.assertThat(results[2].getRamDamage(), is(13));
            Assert.assertThat(results[3].getRamDamage(), is(1));
    
            Assert.assertThat(results[0].getBulletDamageBonus(), is(81));
            Assert.assertThat(results[1].getBulletDamageBonus(), is(0));
            Assert.assertThat(results[2].getBulletDamageBonus(), is(0));
            Assert.assertThat(results[3].getBulletDamageBonus(), is(2));
    
            Assert.assertThat(results[0].getBulletDamage(), is(486));
            Assert.assertThat(results[1].getBulletDamage(), is(300));
            Assert.assertThat(results[2].getBulletDamage(), is(124));
            Assert.assertThat(results[3].getBulletDamage(), is(103));
    
            Assert.assertThat(results[0].getScore(), is(1018));
            Assert.assertThat(results[1].getScore(), is(655));
            Assert.assertThat(results[2].getScore(), is(337));
            Assert.assertThat(results[3].getScore(), is(257));
    
    #       Assert.assertThat(lastTurn, is(2984));
    
     
  • Xor

    Xor - 2020-06-25

    OK This should be casued by using Java 11 instead of Java 8
    reproducing is sadly not possible accross Java versions

     
  • Flemming N. Larsen

    • status: open --> closed
     

Log in to post a comment.