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:
Ursprung
9b7f61a2de
Commit
a23b182de5
@ -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));
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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() {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren