{"id":21239318,"url":"https://github.com/paulohrpinheiro/test-driven-learning","last_synced_at":"2025-07-10T19:32:20.766Z","repository":{"id":48029033,"uuid":"51674078","full_name":"paulohrpinheiro/test-driven-learning","owner":"paulohrpinheiro","description":"Learn programming by passing code tests","archived":false,"fork":false,"pushed_at":"2018-09-16T13:58:04.000Z","size":86,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-27T13:11:53.800Z","etag":null,"topics":["c","javascript","perl","python","ruby","rust","tdd"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulohrpinheiro.png","metadata":{"files":{"readme":"README.mkd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-14T01:21:21.000Z","updated_at":"2022-07-05T13:45:07.000Z","dependencies_parsed_at":"2022-08-12T17:01:05.660Z","dependency_job_id":null,"html_url":"https://github.com/paulohrpinheiro/test-driven-learning","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/paulohrpinheiro/test-driven-learning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulohrpinheiro%2Ftest-driven-learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulohrpinheiro%2Ftest-driven-learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulohrpinheiro%2Ftest-driven-learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulohrpinheiro%2Ftest-driven-learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulohrpinheiro","download_url":"https://codeload.github.com/paulohrpinheiro/test-driven-learning/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulohrpinheiro%2Ftest-driven-learning/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264639916,"owners_count":23642319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","javascript","perl","python","ruby","rust","tdd"],"created_at":"2024-11-21T00:42:55.287Z","updated_at":"2025-07-10T19:32:20.485Z","avatar_url":"https://github.com/paulohrpinheiro.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test Driven Learning\n\nMelhore sua capacidade de programação, trabalhando com código e especificações\nde terceiros, e, especialmente, satisfazendo a testes unitários.\n\n\n# Público alvo\n\nTodo aquele que está começando em uma linguagem e quer resolver alguns\nexercícios, mas fazendo testes de unidade. Com uma diferença: os testes já\nestão feitos. Leia os requisitos, implemente e verifique.\n\n\n## Instalação\n\nClone este repositório em sua máquina:\n\n    git clone https://github.com/paulohrpinheiro/test-driven-learning\n\n\nMelhor ainda de você der um *fork* desse projeto, se tiver uma conta\nno *GitHub*. Aqui tem-se as instruções:\n\n    https://help.github.com/articles/fork-a-repo/\n\n\n## Uso\n\nPrimeiro, escolha um dos níveis (atualmente só o\ndiretório [*000_novice*](000_novice)). Então crie uma *branch* para você. Isso\nfaz parte do exercício:\n\n    git checkout -b minhasolucao # *minhasolucao* é uma sugestão de nome\n\n\nTrabalhe nos arquivos `problems.*`, execute os testes conforme explicado logo\nmais abaixo.\n\nExiste  uma *branch* com sugestão de soluções: é a [branch solved](). Para\npassar a essa *branch*, execute o comando:\n\n    git checkout solved\n\n\nPara voltar à *branch minhasolucao*, onde devem estar seus códigos, digite o\ncomando:\n\n    git checkout minhasolucao\n\n\nEm *solved* está a minha solução para os problemas, que serve como meus testes\npara testar os testes. Pode servir de referência, se quiser comparar seu\ncódigo ou não ter entendido alguma coisa.\n\nAgora você pode começar a trabalhar no diretório da linguagem que você prefere:\n\n1. [Python](000_novice/python)\n1. [Perl](000_novice/perl)\n1. [C](000_novice/c)\n1. [Rust](000_novice/rust)\n1. [Ruby](000_novice/ruby)\n1. [JavaScript](000_novice/javascript)\n1. [GO](000_novice/go)\n\n\nPara testar, cada linguagem tem seu comando. Dentro da pasta e *branch* que\nvocê trabalhou, execute o comando específico:\n\nLinguagem    | comando\n-------------|--------\n*Python*\\*   | `python problems.py`\n*Perl*       | `perl tests.t`\n*C*          | `make test`\n*Rust*       | `cargo test`\n*Ruby*       | `ruby tests.rb -v`\n*JavaScript* | `d8 problems.js`\nGO         | `go test -v`\n\n\\* Funciona tanto no *Python2* como *Python3*\n\nSe algum teste falhar, continue trabalhando e testando.\n\n\n# Quer ajudar no projeto?\n\n1. Clone ele!\n1. Crie uma *branch* para sua contribuição: `git checkout -b minha-contribuissaum`\n1. \"Comite\" suas alterações: `git commit -am 'Add some feature'`\n1. Faça o *pull request*  :stuck_out_tongue:\n\n\n## Licença\n\nLicenciado sob a *MIT License*, veja o arquivo [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulohrpinheiro%2Ftest-driven-learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulohrpinheiro%2Ftest-driven-learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulohrpinheiro%2Ftest-driven-learning/lists"}