Skip to content
Sean Ryan edited this page Sep 20, 2019 · 7 revisions

add negative tests:

  • 0 length string

docs:

  • add use x in example.

add missing features:

  • add is_an(word) -> bool

  • add numbers (read_numbers_literally)

  • add other

  • handle spaces (take first word), hyphenation

  • test more cases:

console.log(a('2')); // 'a 2'
console.log(a('8')); // 'an 8'
console.log(a('1892')); // 'a 1892' -> read "a one thousand eight hundred ninety-two"
console.log(a('1892', { numbers: 'colloquial' })); // 'an 1892' -> read "an eighteen ninety-two"
  • add docs (auto with rust?)

  • pub as crate -> cargo.io

  • add test harness to test cargo.io



Clone this wiki locally