You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<trclass="public"><td><ahref="plunit_assert.html#assert_not_unbound/1">assert_not_unbound/1</a></td><tdclass="summary">Test that Var is not unbound.</td><tdalign="right"><spanstyle="white-space: nowrap"></span></td></tr>
99
99
<trclass="public"><td><ahref="plunit_assert.html#assert_output/3">assert_output/3</a></td><tdclass="summary">Test that a predicate's output arguments match what is expected.</td><tdalign="right"><spanstyle="white-space: nowrap"></span></td></tr>
100
100
<trclass="public"><td><ahref="plunit_assert.html#assert_test_fails/1">assert_test_fails/1</a></td><tdclass="summary">Meta test to check that Goal would trigger a PlUnit test fail.</td><tdalign="right"><spanstyle="white-space: nowrap"></span></td></tr>
101
+
<trclass="public"><td><ahref="plunit_assert.html#assert_test_message/2">assert_test_message/2</a></td><tdclass="summary">Meta test to check we get roughly the right fail messages back.</td><tdalign="right"><spanstyle="white-space: nowrap"></span></td></tr>
101
102
<trclass="public"><td><ahref="plunit_assert.html#assert_test_passes/1">assert_test_passes/1</a></td><tdclass="summary">Meta test to check that Goal would not trigger a PlUnit test fail.</td><tdalign="right"><spanstyle="white-space: nowrap"></span></td></tr>
102
103
<trclass="public"><td><ahref="plunit_assert.html#assert_true/1">assert_true/1</a></td><tdclass="summary">Test that Goal succeeds and therefore is truthy.</td><tdalign="right"><spanstyle="white-space: nowrap"></span></td></tr>
103
104
<trclass="public"><td><ahref="plunit_assert.html#assert_type/2">assert_type/2</a></td><tdclass="summary">Test that Var is of type Type.</td><tdalign="right"><spanstyle="white-space: nowrap"></span></td></tr>
Copy file name to clipboardExpand all lines: plunit_assert.html
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -289,6 +289,19 @@ <h1 class="file"><span style="float:right"></span>plunit_assert.pl -- The test A
289
289
</dd>
290
290
</dl>
291
291
292
+
</dd>
293
+
<dtclass="pubdef"><spanstyle="float:right"> </span><aname="assert_test_passes/1"><bclass="pred">assert_test_passes</b><varclass="arglist">(:Goal)</var></a> is <bclass="det">semidet</b></dt><ddclass="defbody">Meta test to check that <var>Goal</var> would not trigger a PlUnit test fail
294
+
295
+
<dlclass="tags">
296
+
<dtclass="tag">Arguments:</dt><dd>
297
+
298
+
<tableclass="arglist">
299
+
<tr><td><var>Goal</var></td><tdclass="argdescr">- The goal to be queried in the form of a plunit_assert predicate</td></tr>
300
+
</table>
301
+
302
+
</dd>
303
+
</dl>
304
+
292
305
</dd>
293
306
<dtclass="pubdef"><spanstyle="float:right"> </span><aname="assert_test_fails/1"><bclass="pred">assert_test_fails</b><varclass="arglist">(:Goal)</var></a> is <bclass="det">semidet</b></dt><ddclass="defbody">Meta test to check that <var>Goal</var> would trigger a PlUnit test fail
294
307
@@ -303,13 +316,14 @@ <h1 class="file"><span style="float:right"></span>plunit_assert.pl -- The test A
303
316
</dl>
304
317
305
318
</dd>
306
-
<dtclass="pubdef"><spanstyle="float:right"> </span><aname="assert_test_passes/1"><bclass="pred">assert_test_passes</b><varclass="arglist">(:Goal)</var></a> is <bclass="det">semidet</b></dt><ddclass="defbody">Meta test to check that <var>Goal</var> would not trigger a PlUnit test fail
319
+
<dtclass="pubdef"><spanstyle="float:right"> </span><aname="assert_test_message/2"><bclass="pred">assert_test_message</b><varclass="arglist">(:Goal, +Expected)</var></a> is <bclass="det">semidet</b></dt><ddclass="defbody">Meta test to check we get roughly the right fail messages back
307
320
308
321
<dlclass="tags">
309
322
<dtclass="tag">Arguments:</dt><dd>
310
323
311
324
<tableclass="arglist">
312
325
<tr><td><var>Goal</var></td><tdclass="argdescr">- The goal to be queried in the form of a plunit_assert predicate</td></tr>
326
+
<tr><td><var>Expected</var></td><tdclass="argdescr">- An expected substring of the fail message</td></tr>
0 commit comments