This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit c2fc992858cec35c341f18a40a2bf53c5707b608
Author: Josh Tynjala <joshtynj...@apache.org>
AuthorDate: Mon Dec 19 12:43:22 2022 -0800

    Royale: eq alias for equal
---
 .../src/main/royale/org/apache/royale/test/bdd/IExpect.as          | 7 +++++++
 .../src/main/royale/org/apache/royale/test/bdd/expect.as           | 5 +++++
 2 files changed, 12 insertions(+)

diff --git 
a/frameworks/projects/RoyaleUnit/src/main/royale/org/apache/royale/test/bdd/IExpect.as
 
b/frameworks/projects/RoyaleUnit/src/main/royale/org/apache/royale/test/bdd/IExpect.as
index 342b113439..91afba0ad1 100644
--- 
a/frameworks/projects/RoyaleUnit/src/main/royale/org/apache/royale/test/bdd/IExpect.as
+++ 
b/frameworks/projects/RoyaleUnit/src/main/royale/org/apache/royale/test/bdd/IExpect.as
@@ -40,6 +40,13 @@ package org.apache.royale.test.bdd
                 */
                function equals(value:*, message:String = null):IExpect;
 
+               /**
+                * Alias for <code>equal()</code>.
+                * 
+                * @see #equal
+                */
+               function eq(value:*, message:String = null):IExpect;
+
                /**
                 * Asserts that the provided values are strictly equal 
(equivalent to
                 * the <code>===</code> operator).
diff --git 
a/frameworks/projects/RoyaleUnit/src/main/royale/org/apache/royale/test/bdd/expect.as
 
b/frameworks/projects/RoyaleUnit/src/main/royale/org/apache/royale/test/bdd/expect.as
index d2979e1962..6adb0d54a7 100644
--- 
a/frameworks/projects/RoyaleUnit/src/main/royale/org/apache/royale/test/bdd/expect.as
+++ 
b/frameworks/projects/RoyaleUnit/src/main/royale/org/apache/royale/test/bdd/expect.as
@@ -58,6 +58,11 @@ class Expect implements IExpect
                return equal(value, message);
        }
 
+       public function eq(value:*, message:String = null):IExpect
+       {
+               return equal(value, message);
+       }
+
        public function strictlyEqual(value:*, message:String = null):IExpect
        {
                if (_not)

Reply via email to