3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-06 16:12:51 +02:00

Fix vector gen, always enable BlockMap tests

The BlockMap tests got much faster, so there's no need to hide them
behind a flag.

(cherry picked from commit 1e2496af552891e3b43c5703bda8dc4129bbcc5d)
Dieser Commit ist enthalten in:
Octavia Togami 2020-06-03 18:32:49 -07:00 committet von MattBDev
Ursprung 9b7f61a2de
Commit a23b182de5
3 geänderte Dateien mit 2 neuen und 9 gelöschten Zeilen

Datei anzeigen

@ -52,12 +52,6 @@ import static com.sk89q.worldedit.math.BitMath.mask;
*/
public class BlockMap<V> extends AbstractMap<BlockVector3, V> {
/* =========================
IF YOU MAKE CHANGES TO THIS CLASS
Re-run BlockMapTest with the blockmap.fulltesting=true system property.
Or just temporarily remove the annotation disabling the related tests.
========================= */
public static <V> BlockMap<V> create() {
return create(() -> new Int2ObjectOpenHashMap<>(64, 0.9f));
}

Datei anzeigen

@ -259,7 +259,6 @@ class BlockMapTest {
@Nested
@DisplayName("after having an entry added")
@EnabledIfSystemProperty(named = "blockmap.fulltesting", matches = "true")
class AfterEntryAdded {
// Note: This section of tests would really benefit from

Datei anzeigen

@ -40,9 +40,9 @@ public class VariedVectorGenerator {
public final int divisionsXZ;
public final int divisionsY;
public final int maxXZ;
public final int maxY;
public final long maxY;
public final int xzStep;
public final int yStep;
public final long yStep;
public final Set<BlockVector3> alwaysInclude;
public VariedVectorGenerator() {