{"action":"created","comment":{"url":"https://api.github.com/repos/ramda/ramda/pulls/comments/23144024","id":23144024,"diff_hunk":"@@ -0,0 +1,110 @@\n+/* jshint typed: true */\n+\n+var assert = require('assert');\n+\n+var R = require('..');\n+\n+describe('eqDeep', function() {\n+    var a = [];\n+    var b = a;\n+    it('tests for deep equality of its operands', function() {\n+        assert.strictEqual(R.eqDeep(100, 100), true);\n+        assert.strictEqual(R.eqDeep(100, '100'), false);\n+        assert.strictEqual(R.eqDeep([], []), true);\n+        assert.strictEqual(R.eqDeep(a, b), true);\n+    });\n+\n+    it('handles objects', function() {\n+        assert.strictEqual(R.eqDeep({}, {}), true);\n+        assert.strictEqual(R.eqDeep({a:1, b:2}, {a:1, b:2}), true);\n+        assert.strictEqual(R.eqDeep({a:2, b:3}, {b:3, a:2}), true);\n+        assert.strictEqual(R.eqDeep({a:2, b:3}, {a:3, b:3}), false);\n+        assert.strictEqual(R.eqDeep({a:2, b:3, c:1}, {a:2, b:3}), false);\n+    });\n+\n+    var supportsSticky = false;\n+    try { RegExp('', 'y'); supportsSticky = true; } catch (e) {}\n+\n+    var supportsUnicode = false;\n+    try { RegExp('', 'u'); supportsUnicode = true; } catch (e) {}\n+\n+    it('handles regex', function() {\n+        assert.strictEqual(R.eqDeep(/\\s/, /\\s/), true);\n+        assert.strictEqual(R.eqDeep(/\\s/, /\\d/), false);\n+        assert.strictEqual(R.eqDeep(/a/gi, /a/ig), true);\n+        assert.strictEqual(R.eqDeep(/a/mgi, /a/img), true);\n+        assert.strictEqual(R.eqDeep(/a/gi, /a/i), false);\n+\n+        /* jshint ignore: start */\n+        // jscs:disable\n+        // the sticky and unicode flags are not handled by jshint or jscs\n+// this version of jscs doesn't support the jscs:disable/enable flag\n+//        if (supportsSticky) {\n+//            assert.strictEqual(R.eqDeep(/\\s/y, /\\s/y), true);\n+//            assert.strictEqual(R.eqDeep(/a/mygi, /a/imgy), true);\n+//        }\n+//\n+//        if (supportsUnicode) {\n+//            assert.strictEqual(R.eqDeep(/\\s/u, /\\s/u), true);\n+//            assert.strictEqual(R.eqDeep(/a/mugi, /a/imgu), true);\n+//        }\n+        // jscs:enable\n+        /* jshint ignore: end */","path":"test/eqDeep.js","position":52,"original_position":52,"commit_id":"c94677bd03cd9e62beba3e1e8aac148c23d26c80","original_commit_id":"c94677bd03cd9e62beba3e1e8aac148c23d26c80","user":{"login":"davidrusu","id":1832378,"avatar_url":"https://avatars.githubusercontent.com/u/1832378?v=3","gravatar_id":"","url":"https://api.github.com/users/davidrusu","html_url":"https://github.com/davidrusu","followers_url":"https://api.github.com/users/davidrusu/followers","following_url":"https://api.github.com/users/davidrusu/following{/other_user}","gists_url":"https://api.github.com/users/davidrusu/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrusu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrusu/subscriptions","organizations_url":"https://api.github.com/users/davidrusu/orgs","repos_url":"https://api.github.com/users/davidrusu/repos","events_url":"https://api.github.com/users/davidrusu/events{/privacy}","received_events_url":"https://api.github.com/users/davidrusu/received_events","type":"User","site_admin":false},"body":"jshint and jscs don't recognize the 'sticky' and 'unicode' flags yet, and the version of jscs that we are using doesn't support the disable flag","created_at":"2015-01-19T06:10:22Z","updated_at":"2015-01-19T06:10:22Z","html_url":"https://github.com/ramda/ramda/pull/718#discussion_r23144024","pull_request_url":"https://api.github.com/repos/ramda/ramda/pulls/718","_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments/23144024"},"html":{"href":"https://github.com/ramda/ramda/pull/718#discussion_r23144024"},"pull_request":{"href":"https://api.github.com/repos/ramda/ramda/pulls/718"}}},"pull_request":{"url":"https://api.github.com/repos/ramda/ramda/pulls/718","id":27158555,"html_url":"https://github.com/ramda/ramda/pull/718","diff_url":"https://github.com/ramda/ramda/pull/718.diff","patch_url":"https://github.com/ramda/ramda/pull/718.patch","issue_url":"https://api.github.com/repos/ramda/ramda/issues/718","number":718,"state":"open","locked":false,"title":"added eqDeep","user":{"login":"davidrusu","id":1832378,"avatar_url":"https://avatars.githubusercontent.com/u/1832378?v=3","gravatar_id":"","url":"https://api.github.com/users/davidrusu","html_url":"https://github.com/davidrusu","followers_url":"https://api.github.com/users/davidrusu/followers","following_url":"https://api.github.com/users/davidrusu/following{/other_user}","gists_url":"https://api.github.com/users/davidrusu/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrusu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrusu/subscriptions","organizations_url":"https://api.github.com/users/davidrusu/orgs","repos_url":"https://api.github.com/users/davidrusu/repos","events_url":"https://api.github.com/users/davidrusu/events{/privacy}","received_events_url":"https://api.github.com/users/davidrusu/received_events","type":"User","site_admin":false},"body":"Discussion at (#699)","created_at":"2015-01-11T04:10:27Z","updated_at":"2015-01-19T06:10:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9d7acd42293500b8359018a5ca771ba5e3292f7","assignee":null,"milestone":{"url":"https://api.github.com/repos/ramda/ramda/milestones/5","labels_url":"https://api.github.com/repos/ramda/ramda/milestones/5/labels","id":893666,"number":5,"title":"0.9.0","description":"","creator":{"login":"davidchambers","id":210406,"avatar_url":"https://avatars.githubusercontent.com/u/210406?v=3","gravatar_id":"","url":"https://api.github.com/users/davidchambers","html_url":"https://github.com/davidchambers","followers_url":"https://api.github.com/users/davidchambers/followers","following_url":"https://api.github.com/users/davidchambers/following{/other_user}","gists_url":"https://api.github.com/users/davidchambers/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchambers/subscriptions","organizations_url":"https://api.github.com/users/davidchambers/orgs","repos_url":"https://api.github.com/users/davidchambers/repos","events_url":"https://api.github.com/users/davidchambers/events{/privacy}","received_events_url":"https://api.github.com/users/davidchambers/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2014-12-06T02:34:10Z","updated_at":"2015-01-18T05:52:40Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/ramda/ramda/pulls/718/commits","review_comments_url":"https://api.github.com/repos/ramda/ramda/pulls/718/comments","review_comment_url":"https://api.github.com/repos/ramda/ramda/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/718/comments","statuses_url":"https://api.github.com/repos/ramda/ramda/statuses/c94677bd03cd9e62beba3e1e8aac148c23d26c80","head":{"label":"davidrusu:eqDeep","ref":"eqDeep","sha":"c94677bd03cd9e62beba3e1e8aac148c23d26c80","user":{"login":"davidrusu","id":1832378,"avatar_url":"https://avatars.githubusercontent.com/u/1832378?v=3","gravatar_id":"","url":"https://api.github.com/users/davidrusu","html_url":"https://github.com/davidrusu","followers_url":"https://api.github.com/users/davidrusu/followers","following_url":"https://api.github.com/users/davidrusu/following{/other_user}","gists_url":"https://api.github.com/users/davidrusu/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrusu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrusu/subscriptions","organizations_url":"https://api.github.com/users/davidrusu/orgs","repos_url":"https://api.github.com/users/davidrusu/repos","events_url":"https://api.github.com/users/davidrusu/events{/privacy}","received_events_url":"https://api.github.com/users/davidrusu/received_events","type":"User","site_admin":false},"repo":{"id":29080481,"name":"ramda","full_name":"davidrusu/ramda","owner":{"login":"davidrusu","id":1832378,"avatar_url":"https://avatars.githubusercontent.com/u/1832378?v=3","gravatar_id":"","url":"https://api.github.com/users/davidrusu","html_url":"https://github.com/davidrusu","followers_url":"https://api.github.com/users/davidrusu/followers","following_url":"https://api.github.com/users/davidrusu/following{/other_user}","gists_url":"https://api.github.com/users/davidrusu/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrusu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrusu/subscriptions","organizations_url":"https://api.github.com/users/davidrusu/orgs","repos_url":"https://api.github.com/users/davidrusu/repos","events_url":"https://api.github.com/users/davidrusu/events{/privacy}","received_events_url":"https://api.github.com/users/davidrusu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidrusu/ramda","description":"Practical functional Javascript","fork":true,"url":"https://api.github.com/repos/davidrusu/ramda","forks_url":"https://api.github.com/repos/davidrusu/ramda/forks","keys_url":"https://api.github.com/repos/davidrusu/ramda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidrusu/ramda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidrusu/ramda/teams","hooks_url":"https://api.github.com/repos/davidrusu/ramda/hooks","issue_events_url":"https://api.github.com/repos/davidrusu/ramda/issues/events{/number}","events_url":"https://api.github.com/repos/davidrusu/ramda/events","assignees_url":"https://api.github.com/repos/davidrusu/ramda/assignees{/user}","branches_url":"https://api.github.com/repos/davidrusu/ramda/branches{/branch}","tags_url":"https://api.github.com/repos/davidrusu/ramda/tags","blobs_url":"https://api.github.com/repos/davidrusu/ramda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidrusu/ramda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidrusu/ramda/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidrusu/ramda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidrusu/ramda/statuses/{sha}","languages_url":"https://api.github.com/repos/davidrusu/ramda/languages","stargazers_url":"https://api.github.com/repos/davidrusu/ramda/stargazers","contributors_url":"https://api.github.com/repos/davidrusu/ramda/contributors","subscribers_url":"https://api.github.com/repos/davidrusu/ramda/subscribers","subscription_url":"https://api.github.com/repos/davidrusu/ramda/subscription","commits_url":"https://api.github.com/repos/davidrusu/ramda/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidrusu/ramda/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidrusu/ramda/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidrusu/ramda/issues/comments/{number}","contents_url":"https://api.github.com/repos/davidrusu/ramda/contents/{+path}","compare_url":"https://api.github.com/repos/davidrusu/ramda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidrusu/ramda/merges","archive_url":"https://api.github.com/repos/davidrusu/ramda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidrusu/ramda/downloads","issues_url":"https://api.github.com/repos/davidrusu/ramda/issues{/number}","pulls_url":"https://api.github.com/repos/davidrusu/ramda/pulls{/number}","milestones_url":"https://api.github.com/repos/davidrusu/ramda/milestones{/number}","notifications_url":"https://api.github.com/repos/davidrusu/ramda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidrusu/ramda/labels{/name}","releases_url":"https://api.github.com/repos/davidrusu/ramda/releases{/id}","created_at":"2015-01-11T03:46:53Z","updated_at":"2015-01-11T03:46:54Z","pushed_at":"2015-01-19T06:07:54Z","git_url":"git://github.com/davidrusu/ramda.git","ssh_url":"git@github.com:davidrusu/ramda.git","clone_url":"https://github.com/davidrusu/ramda.git","svn_url":"https://github.com/davidrusu/ramda","homepage":"http://ramdajs.com","size":3436,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ramda:master","ref":"master","sha":"fdc2c97d2e838cc6c78490e1711be993b17fd079","user":{"login":"ramda","id":5298359,"avatar_url":"https://avatars.githubusercontent.com/u/5298359?v=3","gravatar_id":"","url":"https://api.github.com/users/ramda","html_url":"https://github.com/ramda","followers_url":"https://api.github.com/users/ramda/followers","following_url":"https://api.github.com/users/ramda/following{/other_user}","gists_url":"https://api.github.com/users/ramda/gists{/gist_id}","starred_url":"https://api.github.com/users/ramda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramda/subscriptions","organizations_url":"https://api.github.com/users/ramda/orgs","repos_url":"https://api.github.com/users/ramda/repos","events_url":"https://api.github.com/users/ramda/events{/privacy}","received_events_url":"https://api.github.com/users/ramda/received_events","type":"Organization","site_admin":false},"repo":{"id":10851820,"name":"ramda","full_name":"ramda/ramda","owner":{"login":"ramda","id":5298359,"avatar_url":"https://avatars.githubusercontent.com/u/5298359?v=3","gravatar_id":"","url":"https://api.github.com/users/ramda","html_url":"https://github.com/ramda","followers_url":"https://api.github.com/users/ramda/followers","following_url":"https://api.github.com/users/ramda/following{/other_user}","gists_url":"https://api.github.com/users/ramda/gists{/gist_id}","starred_url":"https://api.github.com/users/ramda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramda/subscriptions","organizations_url":"https://api.github.com/users/ramda/orgs","repos_url":"https://api.github.com/users/ramda/repos","events_url":"https://api.github.com/users/ramda/events{/privacy}","received_events_url":"https://api.github.com/users/ramda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ramda/ramda","description":"Practical functional Javascript","fork":false,"url":"https://api.github.com/repos/ramda/ramda","forks_url":"https://api.github.com/repos/ramda/ramda/forks","keys_url":"https://api.github.com/repos/ramda/ramda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ramda/ramda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ramda/ramda/teams","hooks_url":"https://api.github.com/repos/ramda/ramda/hooks","issue_events_url":"https://api.github.com/repos/ramda/ramda/issues/events{/number}","events_url":"https://api.github.com/repos/ramda/ramda/events","assignees_url":"https://api.github.com/repos/ramda/ramda/assignees{/user}","branches_url":"https://api.github.com/repos/ramda/ramda/branches{/branch}","tags_url":"https://api.github.com/repos/ramda/ramda/tags","blobs_url":"https://api.github.com/repos/ramda/ramda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ramda/ramda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ramda/ramda/git/refs{/sha}","trees_url":"https://api.github.com/repos/ramda/ramda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ramda/ramda/statuses/{sha}","languages_url":"https://api.github.com/repos/ramda/ramda/languages","stargazers_url":"https://api.github.com/repos/ramda/ramda/stargazers","contributors_url":"https://api.github.com/repos/ramda/ramda/contributors","subscribers_url":"https://api.github.com/repos/ramda/ramda/subscribers","subscription_url":"https://api.github.com/repos/ramda/ramda/subscription","commits_url":"https://api.github.com/repos/ramda/ramda/commits{/sha}","git_commits_url":"https://api.github.com/repos/ramda/ramda/git/commits{/sha}","comments_url":"https://api.github.com/repos/ramda/ramda/comments{/number}","issue_comment_url":"https://api.github.com/repos/ramda/ramda/issues/comments/{number}","contents_url":"https://api.github.com/repos/ramda/ramda/contents/{+path}","compare_url":"https://api.github.com/repos/ramda/ramda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ramda/ramda/merges","archive_url":"https://api.github.com/repos/ramda/ramda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ramda/ramda/downloads","issues_url":"https://api.github.com/repos/ramda/ramda/issues{/number}","pulls_url":"https://api.github.com/repos/ramda/ramda/pulls{/number}","milestones_url":"https://api.github.com/repos/ramda/ramda/milestones{/number}","notifications_url":"https://api.github.com/repos/ramda/ramda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ramda/ramda/labels{/name}","releases_url":"https://api.github.com/repos/ramda/ramda/releases{/id}","created_at":"2013-06-21T20:32:35Z","updated_at":"2015-01-19T03:09:10Z","pushed_at":"2015-01-18T04:07:01Z","git_url":"git://github.com/ramda/ramda.git","ssh_url":"git@github.com:ramda/ramda.git","clone_url":"https://github.com/ramda/ramda.git","svn_url":"https://github.com/ramda/ramda","homepage":"http://ramdajs.com","size":7371,"stargazers_count":1501,"watchers_count":1501,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"open_issues_count":29,"forks":103,"open_issues":29,"watchers":1501,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/718"},"html":{"href":"https://github.com/ramda/ramda/pull/718"},"issue":{"href":"https://api.github.com/repos/ramda/ramda/issues/718"},"comments":{"href":"https://api.github.com/repos/ramda/ramda/issues/718/comments"},"review_comments":{"href":"https://api.github.com/repos/ramda/ramda/pulls/718/comments"},"review_comment":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ramda/ramda/pulls/718/commits"},"statuses":{"href":"https://api.github.com/repos/ramda/ramda/statuses/c94677bd03cd9e62beba3e1e8aac148c23d26c80"}}}}