Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suissa/node-fizzbuzz
FizzBuzz Puzzle with Node.js and BDD(Vows)
https://github.com/suissa/node-fizzbuzz
Last synced: about 2 months ago
JSON representation
FizzBuzz Puzzle with Node.js and BDD(Vows)
- Host: GitHub
- URL: https://github.com/suissa/node-fizzbuzz
- Owner: suissa
- Created: 2012-07-30T00:32:58.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-01T06:06:49.000Z (over 10 years ago)
- Last Synced: 2024-04-10T21:19:09.031Z (9 months ago)
- Language: JavaScript
- Size: 343 KB
- Stars: 7
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
FizzBuzz with BDD
---------------Neste problema, você deverá exibir uma lista de 1 a 100, um em cada linha, com as seguintes exceções:
- Números divisíveis por 3 deve aparecer como 'Fizz' ao invés do número;
- Números divisíveis por 5 devem aparecer como 'Buzz' ao invés do número;
- Números divisíveis por 3 e 5 devem aparecer como 'FizzBuzz' ao invés do número'.link: [FizzBuzz Dojo Puzzle](http://dojopuzzles.com/problemas/exibe/fizzbuzz/ "FizzBuzz Dojo Puzzle")
This experiment is for study purposes. Lets test with several suite tests with node.js
##Suite Test:
- Assert [Node.js Assert](http://nodejs.org/docs/v0.3.1/api/assert.html "Node.js Assert")
- NodeUnit [NodeUnit](http://nodejs.org/docs/v0.3.1/api/assert.html "NodeUnit")
- Mocha [Vows BDD](https://github.com/visionmedia/mocha "Mocha BDD")
- Vows [Vows BDD](http://vowsjs.org/ "Vows BDD")
- Jasmine [Jasmine BDD](https://github.com/pivotal/jasmine/wiki "Jasmine BDD")
- Chai [Chai BDD/TDD](http://chaijs.com/ "Chai BDD/TDD")##Dependencies:
- nodeunit
- mocha
- vows
- jasmine-node
- chai###Assert test
- node test/assert/fizzbuzz-test-assert.js###NodeUnit test
- sudo npm install -g nodeunit
- nodeunit test/nodeunit/fizzbuzz-test-nodeunit.js###Mocha test
- sudo npm install -g mocha
- mocha -R spec test/mocha/fizzbuzz-test-mocha.js###Vows test
- sudo npm install -g vows
- node test/vows/fizzbuzz-test-vows.js###Jasmine test
- sudo npm install -g jasmine-node
- node test/jasmine/fizzbuzz-test-jasmine.js###Chai test
- sudo npm install chai
- node test/chai/fizzbuzz-test-chai.js