From 9958f2864502385766753f8f4a7d140aa7a582b5 Mon Sep 17 00:00:00 2001 From: Derek Brown Date: Sun, 5 Apr 2015 20:19:35 -0400 Subject: Add mention of ?assertNotMatch and ?assertNotEqual These two macros are defined in eunit.hrl, but are missing in this documentation. --- lib/eunit/doc/overview.edoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/eunit/doc/overview.edoc b/lib/eunit/doc/overview.edoc index 872a017440..df716cdeea 100644 --- a/lib/eunit/doc/overview.edoc +++ b/lib/eunit/doc/overview.edoc @@ -569,6 +569,9 @@ Examples: ```?assertMatch({found, {fred, _}}, lookup(bloggs, Table))''' ```?assertMatch([X|_] when X > 0, binary_to_list(B))''' +
`assertNotMatch(GuardedPattern, Expr)'
+
The inverse case of assertMatch, for convenience. +
`assertEqual(Expect, Expr)'
Evaluates the expressions `Expect' and `Expr' and compares the results for equality, if testing is enabled. If the values are not @@ -583,6 +586,9 @@ Examples: ```?assertEqual("b" ++ "a", lists:reverse("ab"))''' ```?assertEqual(foo(X), bar(Y))'''
+
`assertNotEqual(Unexpected, Expr)'
+
The inverse case of assertEqual, for convenience. +
`assertException(ClassPattern, TermPattern, Expr)'
`assertError(TermPattern, Expr)'
`assertExit(TermPattern, Expr)'
-- cgit v1.2.3