couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject couch commit: updated refs/heads/master to c0260d2
Date Wed, 07 Oct 2015 19:32:48 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/master 0f819309c -> c0260d2ff


Remove assertNotMatch macro


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/c0260d2f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/c0260d2f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/c0260d2f

Branch: refs/heads/master
Commit: c0260d2ff24e575906804e26d7f92523f7832df5
Parents: 0f81930
Author: Alexander Shorin <kxepal@apache.org>
Authored: Tue Oct 6 23:59:11 2015 +0300
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Wed Oct 7 22:30:48 2015 +0300

----------------------------------------------------------------------
 include/couch_eunit.hrl | 37 -------------------------------------
 1 file changed, 37 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/c0260d2f/include/couch_eunit.hrl
----------------------------------------------------------------------
diff --git a/include/couch_eunit.hrl b/include/couch_eunit.hrl
index 7c23b50..d3000ae 100644
--- a/include/couch_eunit.hrl
+++ b/include/couch_eunit.hrl
@@ -74,40 +74,3 @@
 	  end)(Expect))).
 -endif.
 -define(_assertEquiv(Expect, Expr), ?_test(?assertEquiv(Expect, Expr))).
-
-%% Borrowed from https://github.com/richcarl/eunit/blob/master/include/eunit.hrl#L200-L219
-%% TODO: get rid of this once R14* is no longer supported
--ifndef(assertNotMatch).
--define(assertNotMatch(Guard, Expr),
-    begin
-        ((fun () ->
-            __V = (Expr),
-            case __V of
-                Guard -> erlang:error({assertNotMatch_failed,
-                    [{module, ?MODULE},
-                    {line, ?LINE},
-                    {expression, (??Expr)},
-                    {pattern, (??Guard)},
-                    {value, __V}]});
-                _ -> ok
-            end
-        end)())
-    end).
--endif.
--ifndef(assertNotEqual).
--define(assertNotEqual(Unexpected, Expr),
-    begin
-    ((fun (__X) ->
-        case (Expr) of
-        __X -> erlang:error({assertNotEqual_failed,
-                     [{module, ?MODULE},
-                      {line, ?LINE},
-                      {expression, (??Expr)},
-                      {value, __X}]});
-        _ -> ok
-        end
-      end)(Unexpected))
-    end).
--define(_assertNotEqual(Unexpected, Expr),
-    ?_test(?assertNotEqual(Unexpected, Expr))).
--endif.


Mime
View raw message