'use strict';

var _ = require('lodash-node')
	;

var asserts = {
	assertTrue: function (value, message) {
		if (!value) {
			throw new Error(message);
		}
	},
	assertEquals: function (actual, expected, message) {
		message = message ? message + ' ' : '';
		if (!_.isEqual(actual, expected)) {
			throw new Error(message + 'Expected "' + expected + '" but was "' + actual + '"');
		}
	},
	assertFalse: function (value, message) {
		if (value) {
			throw new Error(message);
		}
	},
};

module.exports = asserts;

@@ -43,11 +43,58 @@
 e')%0A
+%09, AssertionError = require('assertion-error')%0A
 %09;%0A
-
 %0Avar
@@ -168,32 +168,41 @@
  %7B%0A%09%09%09throw new 
+Assertion
 Error(message);%0A
@@ -190,32 +190,56 @@
 ionError(message
+, %7B%7D, asserts.assertTrue
 );%0A%09%09%7D%0A%09%7D,%0A%09asse
@@ -372,32 +372,41 @@
  %7B%0A%09%09%09throw new 
+Assertion
 Error(message + 
@@ -459,16 +459,42 @@
 al + '%22'
+, %7B%7D, asserts.assertEquals
 );%0A%09%09%7D%0A%09
@@ -566,16 +566,25 @@
 row new 
+Assertion
 Error(me
@@ -588,16 +588,41 @@
 (message
+, %7B%7D, asserts.assertFalse
 );%0A%09%09%7D%0A%09

Use AssertionError for simple asserts (to filter call stack)