GithubHelp home page GithubHelp logo

zhangyanling77 / integer-convert-roman Goto Github PK

View Code? Open in Web Editor NEW

This project forked from demongodyy/integer-convert-roman

0.0 2.0 0.0 2 KB

A simple example to show TDD+Functional in Javascript

JavaScript 100.00%

integer-convert-roman's Introduction

罗马数字与阿拉伯数字转换的函数式实现(TDD)

采用 TDD 方式开发的函数式编程简单用例,主要用于说明和练习函数式编程与 TDD 的思维方式。

其中 test 文件夹下为测试用例,分别对阿拉伯数字与罗马数字互换的两个模块进行测试说明。测试用例的顺序即代表开发思路。

script 文件夹下为两个模块的实现代码。其中未引入额外的函数式编程库(例如 Ramda.js),主要用于说明函数式中数据流向,与使用一系列纯函数完成开发的过程。

运行

npm install
npm run test 或者 npm run test-w

integer-convert-roman's People

Contributors

demongodyy avatar

Watchers

James Cloos avatar zhangyanling77 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.