From d2e2921ab370cacae11316efeb6187061c13bfe6 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Thu, 3 Oct 2024 11:30:15 +0200 Subject: [PATCH] fix the parameter order for assertEquals calls --- .../java/org/mozilla/javascript/tests/IterableTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rhino/src/test/java/org/mozilla/javascript/tests/IterableTest.java b/rhino/src/test/java/org/mozilla/javascript/tests/IterableTest.java index 5e3d8ad4bd..ae9886ae4b 100644 --- a/rhino/src/test/java/org/mozilla/javascript/tests/IterableTest.java +++ b/rhino/src/test/java/org/mozilla/javascript/tests/IterableTest.java @@ -110,8 +110,8 @@ public void forOfUsingNonSymbolScriptable() { null); } catch (Throwable t) { - assertEquals(t.getClass(), EcmaError.class); - assertEquals(t.getMessage(), "TypeError: [object Object] is not iterable"); + assertEquals(EcmaError.class, t.getClass()); + assertEquals("TypeError: [object Object] is not iterable", t.getMessage()); } return null; @@ -143,8 +143,8 @@ public void forOfUsingNonIterable() { 0, null); } catch (Throwable t) { - assertEquals(t.getClass(), EcmaError.class); - assertEquals(t.getMessage(), "TypeError: [object Object] is not iterable"); + assertEquals(EcmaError.class, t.getClass()); + assertEquals("TypeError: [object Object] is not iterable", t.getMessage()); } return null;