'use strict'

import assert from 'assert'
import Any from '../../../src/matchers/any'

describe('any matcher', function () {

    describe('check method', function () {

        // returns true for everything

        const valuesToCheck = [
            false,
            null,
            undefined,
            0,
            -1,
            true,
            5,
            '',
            'abc',
            '4',
            /abc/,
            /abc/g,
            Symbol('symbol'),
            new Date(0),
            {},
            [1, 3, 5],
            [{}],
        ]

        valuesToCheck.forEach(function (value) {

            it(`returns true for ${String(value)}`, function () {

                const any = new Any(value)

                const result = any.check(value)

                assert.deepEqual(result, {
                    match: true,
                    actual: value,
                    expected: value,
                })
            })
        })

    })

})

@@ -662,14 +662,17 @@
 r $%7B
-S
+s
 tring
+ify
 (val
@@ -991,8 +991,142 @@
  %7D)%0A%0A%7D)%0A
+%0Afunction stringify (value) %7B%0A%0A    if (typeof value === 'symbol') %7B%0A        return value.toString()%0A    %7D%0A%0A    return String(value)%0A%7D%0A

fix symbol strgification on node v0.12