lib/assert.js
function(){
		var self = this,
			all = [],
			keys = {},
			current = null;

		self._logs.reverse().forEach(function( log ) {
			if ( log instanceof AssertResult ) {
				current = log.name;
				return;
			}

			var name = log[ 0 ];
			if ( log.length > 1 && munit.isString( name ) && self.tests[ name ] ) {
				if ( ! keys[ name ] ) {
					keys[ name ] = [];
				}

				keys[ name ].unshift( log.slice( 1 ) );
			}
			else if ( current && self.tests[ current ] ) {
				if ( ! keys[ current ] ) {
					keys[ current ] = [];
				}

				keys[ current ].unshift( log );
			}
			else {
				all.unshift( log );
			}
		});

		return { all: all, keys: keys };
	}
function(){
		var self = this,
			all = [],
			keys = {},
			current = null;

		self._logs.reverse().forEach(function( log ) {
			if ( log instanceof AssertResult ) {
				current = log.name;
				return;
			}

			var name = log[ 0 ];
			if ( log.length > 1 && munit.isString( name ) && self.tests[ name ] ) {
				if ( ! keys[ name ] ) {
					keys[ name ] = [];
				}

				keys[ name ].unshift( log.slice( 1 ) );
			}
			else if ( current && self.tests[ current ] ) {
				if ( ! keys[ current ] ) {
					keys[ current ] = [];
				}

				keys[ current ].unshift( log );
			}
			else {
				all.unshift( log );
			}
		});

		return { all: all, keys: keys };
	}
function ( ) { var self = this , all = [ ] , keys = { } , current = null ; self . _logs . reverse ( ) . forEach ( function ( log ) { if ( log instanceof AssertResult ) { current = log . name ; return ; } var name = log [ 0 ] ; if ( log . length > 1 && munit . isString ( name ) && self . tests [ name ] ) { if ( ! keys [ name ] ) { keys [ name ] = [ ] ; } keys [ name ] . unshift ( log . slice ( 1 ) ) ; } else if ( current && self . tests [ current ] ) { if ( ! keys [ current ] ) { keys [ current ] = [ ] ; } keys [ current ] . unshift ( log ) ; } else { all . unshift ( log ) ; } } ) ; return { all : all , keys : keys } ; }
Generates log arrays based on current test keys
Generates log arrays based on current test keys