Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
* docs: add enchantments list link
  • Loading branch information
IWareQ committed Jun 22, 2024
1 parent 22d2bfc commit be93deb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* Allay Project 2023/10/21
*
* @author daoge_cmd
*
* @see <a href="https://minecraft.wiki/w/Enchanting#Summary_of_enchantments">Enchantments List<a/>
*/
@Getter
public abstract class AbstractEnchantmentType implements EnchantmentType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public void shouldDetectAABBOverlaps() {

// Then
assertEquals(1, result.size());
assertEquals(2, result.get(0).getLongId());
assertEquals(2, result.getFirst().getLongId());
}

@Test
Expand All @@ -296,7 +296,7 @@ public void shouldDetectAABBOverlapsWithFiltering() {
// Then
assertEquals(2, result.size());
assertEquals(1, filteredResult.size());
assertEquals(1, filteredResult.get(0).getLongId());
assertEquals(1, filteredResult.getFirst().getLongId());
}

@Test
Expand All @@ -317,7 +317,7 @@ public void shouldDetectCollidingPairs() {

// Then
assertEquals(1, pairs.size());
CollisionPair<TestEntity> collisionPair = pairs.get(0);
CollisionPair<TestEntity> collisionPair = pairs.getFirst();
assertEquals(givenPair, collisionPair);
}

Expand All @@ -344,7 +344,7 @@ public void shouldDetectCollidingPairsWithFiltering() {
// Then
assertEquals(2, pairs.size());
assertEquals(1, filteredPairs.size());
CollisionPair<TestEntity> filteredCollisionPair = filteredPairs.get(0);
CollisionPair<TestEntity> filteredCollisionPair = filteredPairs.getFirst();
assertEquals(givenPair, filteredCollisionPair);
}

Expand All @@ -364,7 +364,7 @@ public void shouldDetectRayIntersection() {

// Then
assertEquals(1, intersecting.size());
assertEquals(1L, intersecting.get(0).getLongId());
assertEquals(1L, intersecting.getFirst().getLongId());
}

@Test
Expand All @@ -385,7 +385,7 @@ public void shouldRestoreNodeToInitialStateOnReuse() {
// Then
assertEquals(INVALID_NODE_INDEX, node.getLeftChild());
assertEquals(INVALID_NODE_INDEX, node.getRightChild());
assertEquals(new AABBf(), node.getAABB());
assertEquals(new AABBf(), node.getAabb());
assertEquals(INVALID_NODE_INDEX, node.getParent());
assertEquals(0, node.getHeight());
assertNull(node.getData());
Expand Down

0 comments on commit be93deb

Please sign in to comment.