|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
252 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | module.exports = assert;
|
|---|
| 2 |
|
|---|
| 3 | function assert(val, msg) {
|
|---|
| 4 | if (!val)
|
|---|
| 5 | throw new Error(msg || 'Assertion failed');
|
|---|
| 6 | }
|
|---|
| 7 |
|
|---|
| 8 | assert.equal = function assertEqual(l, r, msg) {
|
|---|
| 9 | if (l != r)
|
|---|
| 10 | throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));
|
|---|
| 11 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.