[Groonga-commit] groonga/gcs [master] Fix unexpectedly switched "expected" and "actual"

Back to archive index

SHIMODA Hiroshi null+****@clear*****
Wed Aug 15 18:08:13 JST 2012


SHIMODA Hiroshi	2012-08-15 18:08:13 +0900 (Wed, 15 Aug 2012)

  New Revision: 557f3e80ad9dfa39fb59bd9b7cbf005a90e57f53
  https://github.com/groonga/gcs/commit/557f3e80ad9dfa39fb59bd9b7cbf005a90e57f53

  Log:
    Fix unexpectedly switched "expected" and "actual"

  Modified files:
    test/test-utils.js

  Modified: test/test-utils.js (+3 -3)
===================================================================
--- test/test-utils.js    2012-08-15 18:04:40 +0900 (a75993d)
+++ test/test-utils.js    2012-08-15 18:08:13 +0900 (bb7b63d)
@@ -222,12 +222,12 @@ function sortAndStringify(object) {
 }
 
 require('chai').Assertion.prototype.eql = function(obj) {
-  var expected = chai_utils.flag(this, 'object');
+  var actual = chai_utils.flag(this, 'object');
   this.assert(
-      chai_utils.eql(obj, expected)
+      chai_utils.eql(obj, actual)
     , 'expected #{this} to deeply equal #{exp}'
     , 'expected #{this} to not deeply equal #{exp}'
-    , sortAndStringify(expected)
     , sortAndStringify(obj)
+    , sortAndStringify(actual)
   );
 };
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index