@@ -111,7 +111,7 @@ interface Benchmark {
111111 *
112112 * @example
113113 * var str = b.name;
114- * // returns <string >
114+ * // throws <ReferenceError >
115115 */
116116 readonly name : string ;
117117
@@ -120,7 +120,7 @@ interface Benchmark {
120120 *
121121 * @example
122122 * var iter = b.iterations;
123- * // returns <number >
123+ * // throws <ReferenceError >
124124 */
125125 readonly iterations : number ;
126126
@@ -217,7 +217,9 @@ interface Benchmark {
217217 * @param msg - message
218218 *
219219 * @example
220- * b.comment( 'This is a comment.' );
220+ * function benchmark( b ) {
221+ * b.comment( 'This is a comment.' );
222+ * }
221223 */
222224 comment ( msg : string ) : void ;
223225
@@ -228,8 +230,10 @@ interface Benchmark {
228230 * @param msg - message
229231 *
230232 * @example
231- * b.skip( false, 'This is skipped.' );
232- * b.skip( true, 'This is skipped.' );
233+ * function benchmark( b ) {
234+ * b.skip( false, 'This is skipped.' );
235+ * b.skip( true, 'This is skipped.' );
236+ * }
233237 */
234238 skip ( value : any , msg : string ) : void ;
235239
@@ -244,8 +248,10 @@ interface Benchmark {
244248 * @param msg - message
245249 *
246250 * @example
247- * b.todo( false, 'This is a todo.' );
248- * b.todo( true, 'This is a todo.' );
251+ * function benchmark( b ) {
252+ * b.todo( false, 'This is a todo.' );
253+ * b.todo( true, 'This is a todo.' );
254+ * }
249255 */
250256 todo ( value : any , msg : string ) : void ;
251257
@@ -255,7 +261,9 @@ interface Benchmark {
255261 * @param msg - message
256262 *
257263 * @example
258- * b.fail( 'This is a failing assertion.' );
264+ * function benchmark( b ) {
265+ * b.fail( 'This is a failing assertion.' );
266+ * }
259267 */
260268 fail ( msg : string ) : void ;
261269
@@ -265,7 +273,9 @@ interface Benchmark {
265273 * @param msg - message
266274 *
267275 * @example
268- * b.fail( 'This is a passing assertion.' );
276+ * function benchmark( b ) {
277+ * b.fail( 'This is a passing assertion.' );
278+ * }
269279 */
270280 pass ( msg : string ) : void ;
271281
@@ -276,11 +286,15 @@ interface Benchmark {
276286 * @param msg - message
277287 *
278288 * @example
279- * b.ok( [] );
289+ * function benchmark( b ) {
290+ * b.ok( [] );
291+ * }
280292 *
281293 * @example
282- * b.ok( true, 'This asserts a value is truthy.' );
283- * b.ok( false, 'This asserts a value is truthy.' );
294+ * function benchmark( b ) {
295+ * b.ok( true, 'This asserts a value is truthy.' );
296+ * b.ok( false, 'This asserts a value is truthy.' );
297+ * }
284298 */
285299 ok ( value : any , msg ?: string ) : void ;
286300
@@ -291,11 +305,15 @@ interface Benchmark {
291305 * @param msg - message
292306 *
293307 * @example
294- * b.notOk( null );
308+ * function benchmark( b ) {
309+ * b.notOk( null );
310+ * }
295311 *
296312 * @example
297- * b.notOk( false, 'This asserts a value is falsy.' );
298- * b.notOk( true, 'This asserts a value is falsy.' );
313+ * function benchmark( b ) {
314+ * b.notOk( false, 'This asserts a value is falsy.' );
315+ * b.notOk( true, 'This asserts a value is falsy.' );
316+ * }
299317 */
300318 notOk ( value : any , msg ?: string ) : void ;
301319
@@ -310,14 +328,18 @@ interface Benchmark {
310328 * var expected = [];
311329 * var actual = expected;
312330 *
313- * b.equal( actual, expected );
331+ * function benchmark( b ) {
332+ * b.equal( actual, expected );
333+ * }
314334 *
315335 * @example
316336 * var expected = [];
317337 * var actual = expected;
318338 *
319- * b.equal( actual, expected, 'This asserts two values are strictly equal.' );
320- * b.equal( 1.0, 2.0, 'This asserts two values are strictly equal.' );
339+ * function benchmark( b ) {
340+ * b.equal( actual, expected, 'This asserts two values are strictly equal.' );
341+ * b.equal( 1.0, 2.0, 'This asserts two values are strictly equal.' );
342+ * }
321343 */
322344 equal ( actual : any , expected : any , msg ?: string ) : void ;
323345
@@ -332,14 +354,18 @@ interface Benchmark {
332354 * var expected = [];
333355 * var actual = [];
334356 *
335- * b.notEqual( actual, expected );
357+ * function benchmark( b ) {
358+ * b.notEqual( actual, expected );
359+ * }
336360 *
337361 * @example
338362 * var expected = [];
339363 * var actual = [];
340364 *
341- * b.notEqual( 1.0, 2.0, 'This asserts two values are not equal.' );
342- * b.notEqual( actual, expected, 'This asserts two values are not equal.' );
365+ * function benchmark( b ) {
366+ * b.notEqual( 1.0, 2.0, 'This asserts two values are not equal.' );
367+ * b.notEqual( actual, expected, 'This asserts two values are not equal.' );
368+ * }
343369 */
344370 notEqual ( actual : any , expected : any , msg ?: string ) : void ;
345371
@@ -351,27 +377,31 @@ interface Benchmark {
351377 * @param msg - message
352378 *
353379 * @example
354- * var expected = {
355- * 'a': 'b'
356- * };
357- * var actual = {
358- * 'a': 'b'
359- * };
360- *
361- * b.deepEqual( actual, expected );
380+ * function benchmark( b ) {
381+ * var expected = {
382+ * 'a': 'b'
383+ * };
384+ * var actual = {
385+ * 'a': 'b'
386+ * };
387+ *
388+ * b.deepEqual( actual, expected );
389+ * }
362390 *
363391 * @example
364- * var expected = {
365- * 'a': 'b'
366- * };
367- * var actual = {
368- * 'a': 'b'
369- * };
392+ * function benchmark( b ) {
393+ * var expected = {
394+ * 'a': 'b'
395+ * };
396+ * var actual = {
397+ * 'a': 'b'
398+ * };
370399 *
371- * b.deepEqual( actual, expected, 'This asserts two values are deeply equal.' );
400+ * b.deepEqual( actual, expected, 'This asserts two values are deeply equal.' );
372401 *
373- * actual.a = 'c';
374- * b.deepEqual( actual, expected, 'This asserts two values are deeply equal.' );
402+ * actual.a = 'c';
403+ * b.deepEqual( actual, expected, 'This asserts two values are deeply equal.' );
404+ * }
375405 */
376406 deepEqual ( actual : any , expected : any , msg ?: string ) : void ;
377407
@@ -383,27 +413,31 @@ interface Benchmark {
383413 * @param msg - message
384414 *
385415 * @example
386- * var expected = {
387- * 'a': 'b'
388- * };
389- * var actual = {
390- * 'a': 'c'
391- * };
392- *
393- * b.notDeepEqual( actual, expected );
416+ * function benchmark( b ) {
417+ * var expected = {
418+ * 'a': 'b'
419+ * };
420+ * var actual = {
421+ * 'a': 'c'
422+ * };
423+ *
424+ * b.notDeepEqual( actual, expected );
425+ * }
394426 *
395427 * @example
396- * var expected = {
397- * 'a': 'b'
398- * };
399- * var actual = {
400- * 'a': 'c'
401- * };
428+ * function benchmark( b ) {
429+ * var expected = {
430+ * 'a': 'b'
431+ * };
432+ * var actual = {
433+ * 'a': 'c'
434+ * };
402435 *
403- * b.notDeepEqual( actual, expected, 'This asserts two values are not deeply equal.' );
436+ * b.notDeepEqual( actual, expected, 'This asserts two values are not deeply equal.' );
404437 *
405- * actual.a = 'b';
406- * b.notDeepEqual( actual, expected, 'This asserts two values are not deeply equal.' );
438+ * actual.a = 'b';
439+ * b.notDeepEqual( actual, expected, 'This asserts two values are not deeply equal.' );
440+ * }
407441 */
408442 notDeepEqual ( actual : any , expected : any , msg ?: string ) : void ;
409443}
0 commit comments