{"action":"created","comment":{"url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/comments/245478036","pull_request_review_id":189596728,"id":245478036,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NTQ3ODAzNg==","diff_hunk":"@@ -238,48 +240,46 @@ test(\"don't convert case-less characters\", () => {\n \n {{index \"domain-specific language\"}}\n \n-Writing tests like this tends to produce rather repetitive, awkward\n-code. Fortunately, there exist pieces of software that help you build\n-and run collections of tests (_((test suites))_) by providing a\n-language (in the form of functions and methods) suited to expressing\n-tests and by outputting informative information when a test fails.\n-These are usually called _((test runners))_.\n+Escrever testes como este tende a produzir um código muito repetitivo\n+e desajeitado. Felizmente, existem softwares que ajudam você a escrever\n+e rodar coleções de testes (_((test suites))_) fornecendo uma\n+linguagem (na forma de funções e métodos) adequada para expressar\n+testes e gerando informações utéis quando o teste falha.\n+Estes são geralmente chamados de _((test runners))_.\n \n {{index \"persistent data structure\"}}\n \n-Some code is easier to test than other code. Generally, the more\n-external objects that the code interacts with, the harder it is to set\n-up the context in which to test it. The style of programming shown in\n-the [previous chapter](robot), which uses self-contained persistent\n-values rather than changing objects, tends to be easy to test.\n+Certos códigos são mais fáceis de testar que outros. Geralmente, quanto mais\n+objetos externos o código interage, mais difícil é de configurar o contexto no qual\n+testá-lo. O estilo de programação mostrado no [capítulo anterior](robot), que usa valores\n+persistentes independentes em vez de alterar objetos, tendem a ser mais fácil de testar.\n \n-## Debugging\n+## Depuração\n \n {{index debugging}}\n \n-Once you notice there is something wrong with your program\n-because it misbehaves or produces errors, the next step is to figure\n-out _what_ the problem is.\n+Uma vez que você nota que há algo errado com o seu programa\n+porque ele se comporta mal ou produz erros, o próximo passo é descobrir\n+_qual_ é o problema.\n \n-Sometimes it is obvious. The ((error)) message will point at a\n-specific line of your program, and if you look at the error\n-description and that line of code, you can often see the problem.\n+Algumas vezes é óbvio. A mensagem de ((erro)) vai apontar para\n+a linha específica do seu programa, e se você olhar para a descrição\n+do erro e essa linha do código, você pode identificar, com frequência, o problema.\n \n {{index \"run-time error\"}}\n \n-But not always. Sometimes the line that triggered the problem is\n-simply the first place where a flaky value produced elsewhere gets\n-used in an invalid way. If you have been solving the ((exercises)) in\n-earlier chapters, you will probably have already experienced such\n-situations.\n+Nem sempre. Às vezes, a linha que desencadeou o problema\n+é simplesmente o primeiro lugar em que um valor esquisito produzido em outro lugar\n+é usado de maneira inválida. Se você tiver resolvido os ((exercícios)) nos\n+capítulos anteriores, provavelmente já terá experimentado tais\n+situações.\n \n {{index \"decimal number\", \"binary number\"}}\n \n-The following example program tries to convert a whole number to a\n-string in a given base (decimal, binary, and so on) by repeatedly\n-picking out the last ((digit)) and then dividing the number to get rid\n-of this digit. But the strange output that it currently produces\n-suggests that it has a ((bug)).\n+O programa de exemplo a seguir tenta converter um número inteiro em uma\n+sequência de caracteres em uma determinada base (decimal, binário e assim por diante) repetidamente escolhendo o último ((dígito)) e, em seguida, dividindo o número para se livrar","path":"08_error.md","position":402,"original_position":402,"commit_id":"9f1676ff08dbdbde50da9f65058b1c5959b0b5c3","original_commit_id":"9f1676ff08dbdbde50da9f65058b1c5959b0b5c3","user":{"login":"cassiofariasmachado","id":16840260,"node_id":"MDQ6VXNlcjE2ODQwMjYw","avatar_url":"https://avatars0.githubusercontent.com/u/16840260?v=4","gravatar_id":"","url":"https://api.github.com/users/cassiofariasmachado","html_url":"https://github.com/cassiofariasmachado","followers_url":"https://api.github.com/users/cassiofariasmachado/followers","following_url":"https://api.github.com/users/cassiofariasmachado/following{/other_user}","gists_url":"https://api.github.com/users/cassiofariasmachado/gists{/gist_id}","starred_url":"https://api.github.com/users/cassiofariasmachado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cassiofariasmachado/subscriptions","organizations_url":"https://api.github.com/users/cassiofariasmachado/orgs","repos_url":"https://api.github.com/users/cassiofariasmachado/repos","events_url":"https://api.github.com/users/cassiofariasmachado/events{/privacy}","received_events_url":"https://api.github.com/users/cassiofariasmachado/received_events","type":"User","site_admin":false},"body":"`em uma` > `de uma`","created_at":"2019-01-05T13:31:17Z","updated_at":"2019-01-05T13:58:56Z","html_url":"https://github.com/braziljs/eloquente-javascript/pull/428#discussion_r245478036","pull_request_url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/428","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/comments/245478036"},"html":{"href":"https://github.com/braziljs/eloquente-javascript/pull/428#discussion_r245478036"},"pull_request":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/428"}}},"pull_request":{"url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/428","id":240815963,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwODE1OTYz","html_url":"https://github.com/braziljs/eloquente-javascript/pull/428","diff_url":"https://github.com/braziljs/eloquente-javascript/pull/428.diff","patch_url":"https://github.com/braziljs/eloquente-javascript/pull/428.patch","issue_url":"https://api.github.com/repos/braziljs/eloquente-javascript/issues/428","number":428,"state":"open","locked":false,"title":"[3rd] Tradução Cap. 8 - \"Bugs and Errors\"","user":{"login":"cassiofariasmachado","id":16840260,"node_id":"MDQ6VXNlcjE2ODQwMjYw","avatar_url":"https://avatars0.githubusercontent.com/u/16840260?v=4","gravatar_id":"","url":"https://api.github.com/users/cassiofariasmachado","html_url":"https://github.com/cassiofariasmachado","followers_url":"https://api.github.com/users/cassiofariasmachado/followers","following_url":"https://api.github.com/users/cassiofariasmachado/following{/other_user}","gists_url":"https://api.github.com/users/cassiofariasmachado/gists{/gist_id}","starred_url":"https://api.github.com/users/cassiofariasmachado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cassiofariasmachado/subscriptions","organizations_url":"https://api.github.com/users/cassiofariasmachado/orgs","repos_url":"https://api.github.com/users/cassiofariasmachado/repos","events_url":"https://api.github.com/users/cassiofariasmachado/events{/privacy}","received_events_url":"https://api.github.com/users/cassiofariasmachado/received_events","type":"User","site_admin":false},"body":"Ho ho ho, happy christmas! 🎅🎄🎁\r\n\r\nAqui está a tradução do capítulo 8 (#407), aguardo o feedback da revisão 😉","created_at":"2018-12-24T23:18:29Z","updated_at":"2019-01-05T13:58:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c651380db0f919b58d69b52c9094917bd780d724","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/428/commits","review_comments_url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/428/comments","review_comment_url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/braziljs/eloquente-javascript/issues/428/comments","statuses_url":"https://api.github.com/repos/braziljs/eloquente-javascript/statuses/9f1676ff08dbdbde50da9f65058b1c5959b0b5c3","head":{"label":"cassiofariasmachado:bugs-e-erros","ref":"bugs-e-erros","sha":"9f1676ff08dbdbde50da9f65058b1c5959b0b5c3","user":{"login":"cassiofariasmachado","id":16840260,"node_id":"MDQ6VXNlcjE2ODQwMjYw","avatar_url":"https://avatars0.githubusercontent.com/u/16840260?v=4","gravatar_id":"","url":"https://api.github.com/users/cassiofariasmachado","html_url":"https://github.com/cassiofariasmachado","followers_url":"https://api.github.com/users/cassiofariasmachado/followers","following_url":"https://api.github.com/users/cassiofariasmachado/following{/other_user}","gists_url":"https://api.github.com/users/cassiofariasmachado/gists{/gist_id}","starred_url":"https://api.github.com/users/cassiofariasmachado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cassiofariasmachado/subscriptions","organizations_url":"https://api.github.com/users/cassiofariasmachado/orgs","repos_url":"https://api.github.com/users/cassiofariasmachado/repos","events_url":"https://api.github.com/users/cassiofariasmachado/events{/privacy}","received_events_url":"https://api.github.com/users/cassiofariasmachado/received_events","type":"User","site_admin":false},"repo":{"id":100531982,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA1MzE5ODI=","name":"eloquente-javascript","full_name":"cassiofariasmachado/eloquente-javascript","private":false,"owner":{"login":"cassiofariasmachado","id":16840260,"node_id":"MDQ6VXNlcjE2ODQwMjYw","avatar_url":"https://avatars0.githubusercontent.com/u/16840260?v=4","gravatar_id":"","url":"https://api.github.com/users/cassiofariasmachado","html_url":"https://github.com/cassiofariasmachado","followers_url":"https://api.github.com/users/cassiofariasmachado/followers","following_url":"https://api.github.com/users/cassiofariasmachado/following{/other_user}","gists_url":"https://api.github.com/users/cassiofariasmachado/gists{/gist_id}","starred_url":"https://api.github.com/users/cassiofariasmachado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cassiofariasmachado/subscriptions","organizations_url":"https://api.github.com/users/cassiofariasmachado/orgs","repos_url":"https://api.github.com/users/cassiofariasmachado/repos","events_url":"https://api.github.com/users/cassiofariasmachado/events{/privacy}","received_events_url":"https://api.github.com/users/cassiofariasmachado/received_events","type":"User","site_admin":false},"html_url":"https://github.com/cassiofariasmachado/eloquente-javascript","description":"A portuguese translation of Eloquent JavaScript online book","fork":true,"url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript","forks_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/forks","keys_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/teams","hooks_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/hooks","issue_events_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/issues/events{/number}","events_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/events","assignees_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/assignees{/user}","branches_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/branches{/branch}","tags_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/tags","blobs_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/git/refs{/sha}","trees_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/statuses/{sha}","languages_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/languages","stargazers_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/stargazers","contributors_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/contributors","subscribers_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/subscribers","subscription_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/subscription","commits_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/commits{/sha}","git_commits_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/git/commits{/sha}","comments_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/comments{/number}","issue_comment_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/issues/comments{/number}","contents_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/contents/{+path}","compare_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/merges","archive_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/downloads","issues_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/issues{/number}","pulls_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/pulls{/number}","milestones_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/milestones{/number}","notifications_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/labels{/name}","releases_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/releases{/id}","deployments_url":"https://api.github.com/repos/cassiofariasmachado/eloquente-javascript/deployments","created_at":"2017-08-16T20:57:36Z","updated_at":"2018-06-25T01:33:46Z","pushed_at":"2019-01-05T13:11:02Z","git_url":"git://github.com/cassiofariasmachado/eloquente-javascript.git","ssh_url":"git@github.com:cassiofariasmachado/eloquente-javascript.git","clone_url":"https://github.com/cassiofariasmachado/eloquente-javascript.git","svn_url":"https://github.com/cassiofariasmachado/eloquente-javascript","homepage":"http://braziljs.github.io/eloquente-javascript/","size":11810,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"braziljs:3rd","ref":"3rd","sha":"b270d604fd6d81e159b4f0c557d5bdddb46fb48b","user":{"login":"braziljs","id":1768161,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NjgxNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/1768161?v=4","gravatar_id":"","url":"https://api.github.com/users/braziljs","html_url":"https://github.com/braziljs","followers_url":"https://api.github.com/users/braziljs/followers","following_url":"https://api.github.com/users/braziljs/following{/other_user}","gists_url":"https://api.github.com/users/braziljs/gists{/gist_id}","starred_url":"https://api.github.com/users/braziljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braziljs/subscriptions","organizations_url":"https://api.github.com/users/braziljs/orgs","repos_url":"https://api.github.com/users/braziljs/repos","events_url":"https://api.github.com/users/braziljs/events{/privacy}","received_events_url":"https://api.github.com/users/braziljs/received_events","type":"Organization","site_admin":false},"repo":{"id":15612322,"node_id":"MDEwOlJlcG9zaXRvcnkxNTYxMjMyMg==","name":"eloquente-javascript","full_name":"braziljs/eloquente-javascript","private":false,"owner":{"login":"braziljs","id":1768161,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NjgxNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/1768161?v=4","gravatar_id":"","url":"https://api.github.com/users/braziljs","html_url":"https://github.com/braziljs","followers_url":"https://api.github.com/users/braziljs/followers","following_url":"https://api.github.com/users/braziljs/following{/other_user}","gists_url":"https://api.github.com/users/braziljs/gists{/gist_id}","starred_url":"https://api.github.com/users/braziljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braziljs/subscriptions","organizations_url":"https://api.github.com/users/braziljs/orgs","repos_url":"https://api.github.com/users/braziljs/repos","events_url":"https://api.github.com/users/braziljs/events{/privacy}","received_events_url":"https://api.github.com/users/braziljs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/braziljs/eloquente-javascript","description":"Tradução do livro Eloquent JavaScript - 2ª edição.","fork":false,"url":"https://api.github.com/repos/braziljs/eloquente-javascript","forks_url":"https://api.github.com/repos/braziljs/eloquente-javascript/forks","keys_url":"https://api.github.com/repos/braziljs/eloquente-javascript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/braziljs/eloquente-javascript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/braziljs/eloquente-javascript/teams","hooks_url":"https://api.github.com/repos/braziljs/eloquente-javascript/hooks","issue_events_url":"https://api.github.com/repos/braziljs/eloquente-javascript/issues/events{/number}","events_url":"https://api.github.com/repos/braziljs/eloquente-javascript/events","assignees_url":"https://api.github.com/repos/braziljs/eloquente-javascript/assignees{/user}","branches_url":"https://api.github.com/repos/braziljs/eloquente-javascript/branches{/branch}","tags_url":"https://api.github.com/repos/braziljs/eloquente-javascript/tags","blobs_url":"https://api.github.com/repos/braziljs/eloquente-javascript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/braziljs/eloquente-javascript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/braziljs/eloquente-javascript/git/refs{/sha}","trees_url":"https://api.github.com/repos/braziljs/eloquente-javascript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/braziljs/eloquente-javascript/statuses/{sha}","languages_url":"https://api.github.com/repos/braziljs/eloquente-javascript/languages","stargazers_url":"https://api.github.com/repos/braziljs/eloquente-javascript/stargazers","contributors_url":"https://api.github.com/repos/braziljs/eloquente-javascript/contributors","subscribers_url":"https://api.github.com/repos/braziljs/eloquente-javascript/subscribers","subscription_url":"https://api.github.com/repos/braziljs/eloquente-javascript/subscription","commits_url":"https://api.github.com/repos/braziljs/eloquente-javascript/commits{/sha}","git_commits_url":"https://api.github.com/repos/braziljs/eloquente-javascript/git/commits{/sha}","comments_url":"https://api.github.com/repos/braziljs/eloquente-javascript/comments{/number}","issue_comment_url":"https://api.github.com/repos/braziljs/eloquente-javascript/issues/comments{/number}","contents_url":"https://api.github.com/repos/braziljs/eloquente-javascript/contents/{+path}","compare_url":"https://api.github.com/repos/braziljs/eloquente-javascript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/braziljs/eloquente-javascript/merges","archive_url":"https://api.github.com/repos/braziljs/eloquente-javascript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/braziljs/eloquente-javascript/downloads","issues_url":"https://api.github.com/repos/braziljs/eloquente-javascript/issues{/number}","pulls_url":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls{/number}","milestones_url":"https://api.github.com/repos/braziljs/eloquente-javascript/milestones{/number}","notifications_url":"https://api.github.com/repos/braziljs/eloquente-javascript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/braziljs/eloquente-javascript/labels{/name}","releases_url":"https://api.github.com/repos/braziljs/eloquente-javascript/releases{/id}","deployments_url":"https://api.github.com/repos/braziljs/eloquente-javascript/deployments","created_at":"2014-01-03T15:18:01Z","updated_at":"2019-01-04T23:28:12Z","pushed_at":"2019-01-05T13:11:04Z","git_url":"git://github.com/braziljs/eloquente-javascript.git","ssh_url":"git@github.com:braziljs/eloquente-javascript.git","clone_url":"https://github.com/braziljs/eloquente-javascript.git","svn_url":"https://github.com/braziljs/eloquente-javascript","homepage":"","size":11789,"stargazers_count":1280,"watchers_count":1280,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":460,"mirror_url":null,"archived":false,"open_issues_count":26,"license":null,"forks":460,"open_issues":26,"watchers":1280,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/428"},"html":{"href":"https://github.com/braziljs/eloquente-javascript/pull/428"},"issue":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/issues/428"},"comments":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/issues/428/comments"},"review_comments":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/428/comments"},"review_comment":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/pulls/428/commits"},"statuses":{"href":"https://api.github.com/repos/braziljs/eloquente-javascript/statuses/9f1676ff08dbdbde50da9f65058b1c5959b0b5c3"}},"author_association":"NONE"}}
{"actor":{"display_login":"cassiofariasmachado"}}