v-kolesnikov / sicp Goto Github PK
View Code? Open in Web Editor NEWSICP on Clojure
Home Page: https://mitpress.mit.edu/sicp/
License: MIT License
SICP on Clojure
Home Page: https://mitpress.mit.edu/sicp/
License: MIT License
Чем можно помочь:
А также всегда можно сообщить в issues и pull-requests о замеченных ошибках и опечатках в коде, тестах или документации.
Добавить библиотеку для рисования графиков\деревьев:
lein test sicp.chapter03.3-05-test
{:result false, :seed 1511743741494, :failing-size 0, :num-tests 1, :fail [26.928], :shrunk {:total-nodes-visited 0, :depth 0, :result false, :smallest [26.928]}, :test-var "spec-estimate-integral"}
lein test :only sicp.chapter03.3-05-test/spec-estimate-integral
FAIL in (spec-estimate-integral) (clojure_test.cljc:21)
expected: result
actual: false
{:result true, :num-tests 10, :seed 1511743741518, :test-var "spec-estimate-pi"}
Testing sicp.chapter02.2-36-test
{:result false, :seed 1468497907190, :failing-size 0, :num-tests 1, :fail [(nil)], :shrunk {:total-nodes-visited 0, :depth 0, :result false, :smallest [(nil)]}, :test-var "spec-accumulate-n"}
lein test sicp.chapter02.2-36-test
{:result false, :seed 1470579238251, :failing-size 0, :num-tests 1, :fail [(nil)], :shrunk {:total-nodes-visited 0, :depth 0, :result false, :smallest [(nil)]}, :test-var "spec-accumulate-n"}
lein test :only sicp.chapter02.2-36-test/spec-accumulate-n
FAIL in (spec-accumulate-n) (clojure_test.cljc:21)
expected: result
actual: false
lein test sicp.chapter02.2-36-test
{:result false, :seed 1509832267073, :failing-size 0, :num-tests 1, :fail [(nil)], :shrunk {:total-nodes-visited 0, :depth 0, :result false, :smallest [(nil)]}, :test-var "spec-accumulate-n"}
lein test :only sicp.chapter02.2-36-test/spec-accumulate-n
FAIL in (spec-accumulate-n) (clojure_test.cljc:21)
expected: result
actual: false
Во всех файлах решений где есть несколько версий функций, переименовать их по следующей схеме:
(def foo foo-optimize)
; Прямые копии из книги
(defn foo-recursive [])
(defn foo-canonical [])
; Оптимизированные
(defn foo-iterative [])
(defn foo-optimize [])
Соответсвенно тестировать нужно все функции. Для последующего использования выбирать оптимальную и делать для неё ссылку.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.