Skip to content

Commit

Permalink
Put expected and actual assert arguments the right way round.
Browse files Browse the repository at this point in the history
  • Loading branch information
aardvark179 committed Jan 17, 2025
1 parent 91a56ae commit c77691b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rhino/src/test/java/org/mozilla/javascript/SlotMapTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void computeReplaceSlot() {
assertEquals(newSlot.value, "bar");
slot = obj.getMap().query("one", 0);
assertEquals(slot.value, "bar");
assertEquals(obj.getMap().size(), 1);
assertEquals(1, obj.getMap().size());
}

@Test
Expand All @@ -145,7 +145,7 @@ public void computeCreateNewSlot() {
Slot slot = obj.getMap().query("one", 0);
assertNotNull(slot);
assertEquals(slot.value, "bar");
assertEquals(obj.getMap().size(), 1);
assertEquals(1, obj.getMap().size());
}

@Test
Expand All @@ -168,7 +168,7 @@ public void computeRemoveSlot() {
assertNull(newSlot);
slot = obj.getMap().query("one", 0);
assertNull(slot);
assertEquals(obj.getMap().size(), 0);
assertEquals(0, obj.getMap().size());
}

private static final int NUM_INDICES = 67;
Expand Down

0 comments on commit c77691b

Please sign in to comment.