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
The following commit(s) were added to refs/heads/develop by this push:
new 552ee9e RoyaleUnit: fixed issue where assert error messages had
expected and actual swapped
552ee9e is described below
commit 552ee9e01e64ef657ecb0e4033c6eb6bf705c7cd
Author: Josh Tynjala <[email protected]>
AuthorDate: Wed Sep 25 13:44:42 2019 -0700
RoyaleUnit: fixed issue where assert error messages had expected and actual
swapped
---
.../RoyaleUnit/src/main/royale/org/apache/royale/test/Assert.as | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/frameworks/projects/RoyaleUnit/src/main/royale/org/apache/royale/test/Assert.as
b/frameworks/projects/RoyaleUnit/src/main/royale/org/apache/royale/test/Assert.as
index baa8929..3c0eb55 100644
---
a/frameworks/projects/RoyaleUnit/src/main/royale/org/apache/royale/test/Assert.as
+++
b/frameworks/projects/RoyaleUnit/src/main/royale/org/apache/royale/test/Assert.as
@@ -130,7 +130,7 @@ package org.apache.royale.test
{
if(actual == expected)
{
- failWithUserMessage("expected: <" + expected +
"> not to be equal to <" + actual + ">", message);
+ failWithUserMessage("expected <" + actual + ">
not to be equal to <" + expected + ">", message);
}
}
@@ -141,7 +141,7 @@ package org.apache.royale.test
{
if(actual != expected)
{
- failWithUserMessage("expected: <" + expected +
"> to be equal to <" + actual + ">", message);
+ failWithUserMessage("expected <" + actual + ">
to be equal to <" + expected + ">", message);
}
}
@@ -152,7 +152,7 @@ package org.apache.royale.test
{
if(actual === expected)
{
- failWithUserMessage("expected: <" + expected +
"> not to be strictly equal to <" + actual + ">", message);
+ failWithUserMessage("expected <" + actual + ">
not to be strictly equal to <" + expected + ">", message);
}
}
@@ -163,7 +163,7 @@ package org.apache.royale.test
{
if(actual !== expected)
{
- failWithUserMessage("expected: <" + expected +
"> to be strictly equal to <" + actual + ">", message);
+ failWithUserMessage("expected <" + actual + ">
to be strictly equal to <" + expected + ">", message);
}
}