LarsFin / NumberFactory

TDD for varying languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Number Factory

Simple number factory written and tested in various languages.

Languages Covered

The table below shows the languages currently used.

Language Tested With Additional Tools Complete?
C NO
C# xUnit Moq
Shouldly
YES
C++ Catch2 CMake
g++
NO
Elixir NO
go testing stretchr/testify/assert
golint
gomock
YES
Groovy Spock maven YES
Java Junit Mockito
gradle
YES
Lisp NO
Node.JS Jest npm
eslint
YES
Objective-C NO
PHP PHPUnit composer YES
Python unittest pycodestyle
pyrg
mock
YES
Ruby rspec rubocop
simplecov
YES
Rust Rust built in 'libtest' Cargo
Clippy
mockall
YES
Smalltalk NO
TypeScript ts-jest npm
eslint (typescript plugin)
YES

User Stories of Factory

Simple user stories have been outlined to outline design of project and the tested criteria;

As a User,
So I can determine difficult addition,
I can pass two arguments which are added and int result is returned
As a User,
So I can determine difficult subtraction,
I can pass two arguments which are subtracted and int result is returned
As a User,
So I can determine difficult multiplication,
I can pass two arguments which are multiplied and int result is returned
As a User,
So I can determine difficult division,
I can pass two arguments which are divided and float result is returned
As a User,
So I can determine difficult squares,
I can pass an int argument which is squared and the int result is returned
As a User,
So I can sum multiple integers,
I can pass an array of integers which is summed and the int result is returned
As a User,
So I can enjoy RNG,
I can call a function/method to generate a random int from 0 - 100 and return it

About

TDD for varying languages

License:MIT License


Languages

Language:C# 12.5%Language:Java 12.2%Language:Python 10.4%Language:JavaScript 10.2%Language:TypeScript 10.0%Language:Ruby 9.7%Language:Go 9.1%Language:PHP 8.7%Language:Groovy 8.0%Language:Rust 6.2%Language:Shell 2.9%Language:C++ 0.1%