在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:LegalizeAdulthood/cpp-koans开源软件地址:https://github.com/LegalizeAdulthood/cpp-koans开源编程语言:C++ 99.9%开源软件介绍:C++ KoansThis repository exists as a set of C++ koans. A koan in general terms is:
In programming terms, a koan is expressed as a series of programming questions written as failing unit test assertions. You progress through the koan by modifying the code to make the assertions pass. By answering the questions it is hoped that you achieve "enlightenment" about the feature in question. OrganizationThis repository is organized as a set of source files, each representing a particular area of study in koan form. Each koan corresponds to a unit test executable described by the CMake build script. There is an associated header file for each koan that contains just enough infrastructure to express the koans. You can safely ignore this header file if you are only interested in consuming the koans as a student. If you are interested in writing new koans, you may find useful tricks inside those header files. Current list of koans. Practicing the KoansEach koan consists of a number of test cases. Each test case consists of a number of related statements posed
as assertions. Initially all the assertions fail. To practice the koan, edit each assertion to make the
assertion true. Typically each assertion will contain the symbol A koan is designed to increase your understanding in some way; it is not a test. Feel free to consult documentation, leverage your IDE to research function signatures, etc., in order to figure out how to make an assertion pass. Sometimes running the tests will tell you how the right answer compared to your incorrect answer. Feel free to copy/paste correct answers from the build output to pass the assertion! The build script is configured to run the tests after a successful compile, so simply building the code will run the tests and report failed assertions. First Time Setup
Dependencies
ContributingNew koans or improvements to existing koans are most welcome! Simply fork and submit a pull request as usual on github. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论