Skip to content

vitalielisnic/adding-words-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Add two English words together!

Source: http://codewars.com

Challenge

Implement a class Arith such that

  var k = new Arith("three");
  k.add("one hundred and two"); //this should return "one hundred and five"

Input - Will be between zero and five hundred and will always be in lower case. This input range applies to both the initial value upon object instantiation as well as the input for the add method.

Output - Word representation of the result of the addition. Should be in lower case

Word format - Both input and output shall be in the format 123 = one hundred and twenty three. No hyphen is needed in numbers 21-99. Words should also be separated with one space and no space padding is allowed.

#Acceptance criteria

  • Implementation
  • Full test coverage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published