采用 TDD 方式开发的函数式编程简单用例,主要用于说明和练习函数式编程与 TDD 的思维方式。
其中 test 文件夹下为测试用例,分别对阿拉伯数字与罗马数字互换的两个模块进行测试说明。测试用例的顺序即代表开发思路。
script 文件夹下为两个模块的实现代码。其中未引入额外的函数式编程库(例如 Ramda.js),主要用于说明函数式中数据流向,与使用一系列纯函数完成开发的过程。
npm install
npm run test 或者 npm run test-w
This project forked from demongodyy/integer-convert-roman
A simple example to show TDD+Functional in Javascript
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.