在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:functional-koans/clojure-koan-engine开源软件地址:https://github.com/functional-koans/clojure-koan-engine开源编程语言:Clojure 51.2%开源软件介绍:Koan EngineClojure-Koan-Engine is the library behind clojure-koans. It exposes the (meditations
"We shall contemplate truth by testing reality, via equality."
(= __ true)
"To understand reality, we must compare our expectations against reality."
(= __ (+ 1 1))) The student' job is to fill in the blanks in such a way that the code form throws no exceptions and returns a truthy value. Writing your own koansKoans are a wonderful way to teach users by example. If you maintain or use a library in Clojure, consider putting together a custom Koan project! The easiest way to start writing koans for your library is to generate a new project with the
Use these commands to great a new project based on the koan template.
The README of the resulting project will contain everything your users need to know to get started. Adding koan-engine to an existing projectYou can also add koans to an existing library without interfering with your source tree. This is a wonderful way to introduce users to your source code. To get started, add the
The plugin makes two tasks available:
CustomizationsThe koan engine looks for koans under :koan {:koan-root "src/koans" ;; koan files live at this root
:dojo-resource "dojo.clj" ;; The forms in resources/dojo.clj are evaluted before every koan.
:koan-resource "koans.clj"} ;; answers located at resources/koans.clj For more information on the Dojo see the wiki page. "How to write Koans" provides more information on how to add your own koans and answers. LicenseThe use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论