Flooded Switzerland

8cdb9cd4

Jerome V.

A newer submission is available.
Some tests are incorrect: They fail when run against a reference implementation. The test suite score has been reduced.

Test Suite

59 % complete

Suggestions

  • Revise incorrect test MunicipalityReaderTest.testMunicipalityNormal. The test failed on line 41 when run against a reference implementation:
    ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
  • Testen, dass MunicipalityReader eine leere Liste zurückgibt, wenn ein CSV-Text übergeben wird, der nur den Header enthält. The test suite already does this partially, but it only detects 5 out of 6 possible bugs in this regard.
  • Testen, dass MunicipalityReader für einen CSV-Text mit mehreren Zeilen eine Liste mit entsprechend vielen Einträgen zurückgibt.
  • Testen, dass MunicipalityReader die Namen der Gemeinden in einem CSV-Text korrekt parst.

Implementation

59 % complete 33 / 33 Tests
  • CoordinateTest.constructorGetter: Passed
  • CoordinateTest.equals: Passed
  • CoordinateTest.equalsNullOrOtherType: Passed
  • CoordinateTest.toStringTest: Passed
  • ElevationModelReaderTest.read1x1: Passed
  • ElevationModelReaderTest.read2x2: Passed
  • ElevationModelReaderTest.readHeader: Passed
  • ElevationModelReaderTest.readNoData: Passed
  • ElevationModelReaderTest.readRectangular: Passed
  • ElevationModelTest.constructorGetter: Passed
  • ElevationModelTest.elevationAt1x1: Passed
  • ElevationModelTest.elevationAtBetween: Passed
  • ElevationModelTest.elevationAtExact: Passed
  • ElevationModelTest.elevationAtOutside: Passed
  • FloodSimulationTest.testIncreaseWaterLevel: Passed
  • FloodSimulationTest.testInitialWaterLevel: Passed
  • FloodSimulationTest.testIsFlooded: Passed
  • FloodSimulationTest.testSetWaterLevel: Passed
  • FloodSimulationTest.testTotalPopulation: Passed
  • MunicipalityReaderTest.testMunicipalityEmpty: Passed
  • MunicipalityReaderTest.testMunicipalityNormal: Passed
  • MunicipalityTest.testEqualsDifferentArea: Passed
  • MunicipalityTest.testEqualsDifferentName: Passed
  • MunicipalityTest.testEqualsDifferentPopulation: Passed
  • MunicipalityTest.testEqualsIdentical: Passed
  • MunicipalityTest.testEqualsNull: Passed
  • MunicipalityTest.testEqualsSimple: Passed
  • MunicipalityTest.testEqualsWrongType: Passed
  • MunicipalityTest.testHashCodeDifferentArea: Passed
  • MunicipalityTest.testHashCodeDifferentName: Passed
  • MunicipalityTest.testHashCodeDifferentPopulation: Passed
  • MunicipalityTest.testHashCodeEqualObjects: Passed
  • MunicipalityTest.testMunicipal: Passed

Other Submissions