forked from Shastel/human-readable-number
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
/
test.js
6004 lines (4002 loc) · 158 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
const assert = require('assert');
const toReadable = require('./src');
it('Should return \'zero\' when 0 given', () => {
const readable = toReadable(0);
assert.equal(readable, 'zero');
});
it('Should return \'one\' when 1 given', () => {
const readable = toReadable(1);
assert.equal(readable, 'one');
});
it('Should return \'two\' when 2 given', () => {
const readable = toReadable(2);
assert.equal(readable, 'two');
});
it('Should return \'three\' when 3 given', () => {
const readable = toReadable(3);
assert.equal(readable, 'three');
});
it('Should return \'four\' when 4 given', () => {
const readable = toReadable(4);
assert.equal(readable, 'four');
});
it('Should return \'five\' when 5 given', () => {
const readable = toReadable(5);
assert.equal(readable, 'five');
});
it('Should return \'six\' when 6 given', () => {
const readable = toReadable(6);
assert.equal(readable, 'six');
});
it('Should return \'seven\' when 7 given', () => {
const readable = toReadable(7);
assert.equal(readable, 'seven');
});
it('Should return \'eight\' when 8 given', () => {
const readable = toReadable(8);
assert.equal(readable, 'eight');
});
it('Should return \'nine\' when 9 given', () => {
const readable = toReadable(9);
assert.equal(readable, 'nine');
});
it('Should return \'ten\' when 10 given', () => {
const readable = toReadable(10);
assert.equal(readable, 'ten');
});
it('Should return \'eleven\' when 11 given', () => {
const readable = toReadable(11);
assert.equal(readable, 'eleven');
});
it('Should return \'twelve\' when 12 given', () => {
const readable = toReadable(12);
assert.equal(readable, 'twelve');
});
it('Should return \'thirteen\' when 13 given', () => {
const readable = toReadable(13);
assert.equal(readable, 'thirteen');
});
it('Should return \'fourteen\' when 14 given', () => {
const readable = toReadable(14);
assert.equal(readable, 'fourteen');
});
it('Should return \'fifteen\' when 15 given', () => {
const readable = toReadable(15);
assert.equal(readable, 'fifteen');
});
it('Should return \'sixteen\' when 16 given', () => {
const readable = toReadable(16);
assert.equal(readable, 'sixteen');
});
it('Should return \'seventeen\' when 17 given', () => {
const readable = toReadable(17);
assert.equal(readable, 'seventeen');
});
it('Should return \'eighteen\' when 18 given', () => {
const readable = toReadable(18);
assert.equal(readable, 'eighteen');
});
it('Should return \'nineteen\' when 19 given', () => {
const readable = toReadable(19);
assert.equal(readable, 'nineteen');
});
it('Should return \'twenty\' when 20 given', () => {
const readable = toReadable(20);
assert.equal(readable, 'twenty');
});
it('Should return \'twenty one\' when 21 given', () => {
const readable = toReadable(21);
assert.equal(readable, 'twenty one');
});
it('Should return \'twenty two\' when 22 given', () => {
const readable = toReadable(22);
assert.equal(readable, 'twenty two');
});
it('Should return \'twenty three\' when 23 given', () => {
const readable = toReadable(23);
assert.equal(readable, 'twenty three');
});
it('Should return \'twenty four\' when 24 given', () => {
const readable = toReadable(24);
assert.equal(readable, 'twenty four');
});
it('Should return \'twenty five\' when 25 given', () => {
const readable = toReadable(25);
assert.equal(readable, 'twenty five');
});
it('Should return \'twenty six\' when 26 given', () => {
const readable = toReadable(26);
assert.equal(readable, 'twenty six');
});
it('Should return \'twenty seven\' when 27 given', () => {
const readable = toReadable(27);
assert.equal(readable, 'twenty seven');
});
it('Should return \'twenty eight\' when 28 given', () => {
const readable = toReadable(28);
assert.equal(readable, 'twenty eight');
});
it('Should return \'twenty nine\' when 29 given', () => {
const readable = toReadable(29);
assert.equal(readable, 'twenty nine');
});
it('Should return \'thirty\' when 30 given', () => {
const readable = toReadable(30);
assert.equal(readable, 'thirty');
});
it('Should return \'thirty one\' when 31 given', () => {
const readable = toReadable(31);
assert.equal(readable, 'thirty one');
});
it('Should return \'thirty two\' when 32 given', () => {
const readable = toReadable(32);
assert.equal(readable, 'thirty two');
});
it('Should return \'thirty three\' when 33 given', () => {
const readable = toReadable(33);
assert.equal(readable, 'thirty three');
});
it('Should return \'thirty four\' when 34 given', () => {
const readable = toReadable(34);
assert.equal(readable, 'thirty four');
});
it('Should return \'thirty five\' when 35 given', () => {
const readable = toReadable(35);
assert.equal(readable, 'thirty five');
});
it('Should return \'thirty six\' when 36 given', () => {
const readable = toReadable(36);
assert.equal(readable, 'thirty six');
});
it('Should return \'thirty seven\' when 37 given', () => {
const readable = toReadable(37);
assert.equal(readable, 'thirty seven');
});
it('Should return \'thirty eight\' when 38 given', () => {
const readable = toReadable(38);
assert.equal(readable, 'thirty eight');
});
it('Should return \'thirty nine\' when 39 given', () => {
const readable = toReadable(39);
assert.equal(readable, 'thirty nine');
});
it('Should return \'forty\' when 40 given', () => {
const readable = toReadable(40);
assert.equal(readable, 'forty');
});
it('Should return \'forty one\' when 41 given', () => {
const readable = toReadable(41);
assert.equal(readable, 'forty one');
});
it('Should return \'forty two\' when 42 given', () => {
const readable = toReadable(42);
assert.equal(readable, 'forty two');
});
it('Should return \'forty three\' when 43 given', () => {
const readable = toReadable(43);
assert.equal(readable, 'forty three');
});
it('Should return \'forty four\' when 44 given', () => {
const readable = toReadable(44);
assert.equal(readable, 'forty four');
});
it('Should return \'forty five\' when 45 given', () => {
const readable = toReadable(45);
assert.equal(readable, 'forty five');
});
it('Should return \'forty six\' when 46 given', () => {
const readable = toReadable(46);
assert.equal(readable, 'forty six');
});
it('Should return \'forty seven\' when 47 given', () => {
const readable = toReadable(47);
assert.equal(readable, 'forty seven');
});
it('Should return \'forty eight\' when 48 given', () => {
const readable = toReadable(48);
assert.equal(readable, 'forty eight');
});
it('Should return \'forty nine\' when 49 given', () => {
const readable = toReadable(49);
assert.equal(readable, 'forty nine');
});
it('Should return \'fifty\' when 50 given', () => {
const readable = toReadable(50);
assert.equal(readable, 'fifty');
});
it('Should return \'fifty one\' when 51 given', () => {
const readable = toReadable(51);
assert.equal(readable, 'fifty one');
});
it('Should return \'fifty two\' when 52 given', () => {
const readable = toReadable(52);
assert.equal(readable, 'fifty two');
});
it('Should return \'fifty three\' when 53 given', () => {
const readable = toReadable(53);
assert.equal(readable, 'fifty three');
});
it('Should return \'fifty four\' when 54 given', () => {
const readable = toReadable(54);
assert.equal(readable, 'fifty four');
});
it('Should return \'fifty five\' when 55 given', () => {
const readable = toReadable(55);
assert.equal(readable, 'fifty five');
});
it('Should return \'fifty six\' when 56 given', () => {
const readable = toReadable(56);
assert.equal(readable, 'fifty six');
});
it('Should return \'fifty seven\' when 57 given', () => {
const readable = toReadable(57);
assert.equal(readable, 'fifty seven');
});
it('Should return \'fifty eight\' when 58 given', () => {
const readable = toReadable(58);
assert.equal(readable, 'fifty eight');
});
it('Should return \'fifty nine\' when 59 given', () => {
const readable = toReadable(59);
assert.equal(readable, 'fifty nine');
});
it('Should return \'sixty\' when 60 given', () => {
const readable = toReadable(60);
assert.equal(readable, 'sixty');
});
it('Should return \'sixty one\' when 61 given', () => {
const readable = toReadable(61);
assert.equal(readable, 'sixty one');
});
it('Should return \'sixty two\' when 62 given', () => {
const readable = toReadable(62);
assert.equal(readable, 'sixty two');
});
it('Should return \'sixty three\' when 63 given', () => {
const readable = toReadable(63);
assert.equal(readable, 'sixty three');
});
it('Should return \'sixty four\' when 64 given', () => {
const readable = toReadable(64);
assert.equal(readable, 'sixty four');
});
it('Should return \'sixty five\' when 65 given', () => {
const readable = toReadable(65);
assert.equal(readable, 'sixty five');
});
it('Should return \'sixty six\' when 66 given', () => {
const readable = toReadable(66);
assert.equal(readable, 'sixty six');
});
it('Should return \'sixty seven\' when 67 given', () => {
const readable = toReadable(67);
assert.equal(readable, 'sixty seven');
});
it('Should return \'sixty eight\' when 68 given', () => {
const readable = toReadable(68);
assert.equal(readable, 'sixty eight');
});
it('Should return \'sixty nine\' when 69 given', () => {
const readable = toReadable(69);
assert.equal(readable, 'sixty nine');
});
it('Should return \'seventy\' when 70 given', () => {
const readable = toReadable(70);
assert.equal(readable, 'seventy');
});
it('Should return \'seventy one\' when 71 given', () => {
const readable = toReadable(71);
assert.equal(readable, 'seventy one');
});
it('Should return \'seventy two\' when 72 given', () => {
const readable = toReadable(72);
assert.equal(readable, 'seventy two');
});
it('Should return \'seventy three\' when 73 given', () => {
const readable = toReadable(73);
assert.equal(readable, 'seventy three');
});
it('Should return \'seventy four\' when 74 given', () => {
const readable = toReadable(74);
assert.equal(readable, 'seventy four');
});
it('Should return \'seventy five\' when 75 given', () => {
const readable = toReadable(75);
assert.equal(readable, 'seventy five');
});
it('Should return \'seventy six\' when 76 given', () => {
const readable = toReadable(76);
assert.equal(readable, 'seventy six');
});
it('Should return \'seventy seven\' when 77 given', () => {
const readable = toReadable(77);
assert.equal(readable, 'seventy seven');
});
it('Should return \'seventy eight\' when 78 given', () => {
const readable = toReadable(78);
assert.equal(readable, 'seventy eight');
});
it('Should return \'seventy nine\' when 79 given', () => {
const readable = toReadable(79);
assert.equal(readable, 'seventy nine');
});
it('Should return \'eighty\' when 80 given', () => {
const readable = toReadable(80);
assert.equal(readable, 'eighty');
});
it('Should return \'eighty one\' when 81 given', () => {
const readable = toReadable(81);
assert.equal(readable, 'eighty one');
});
it('Should return \'eighty two\' when 82 given', () => {
const readable = toReadable(82);
assert.equal(readable, 'eighty two');
});
it('Should return \'eighty three\' when 83 given', () => {
const readable = toReadable(83);
assert.equal(readable, 'eighty three');
});
it('Should return \'eighty four\' when 84 given', () => {
const readable = toReadable(84);
assert.equal(readable, 'eighty four');
});
it('Should return \'eighty five\' when 85 given', () => {
const readable = toReadable(85);
assert.equal(readable, 'eighty five');
});
it('Should return \'eighty six\' when 86 given', () => {
const readable = toReadable(86);
assert.equal(readable, 'eighty six');
});
it('Should return \'eighty seven\' when 87 given', () => {
const readable = toReadable(87);
assert.equal(readable, 'eighty seven');
});
it('Should return \'eighty eight\' when 88 given', () => {
const readable = toReadable(88);
assert.equal(readable, 'eighty eight');
});
it('Should return \'eighty nine\' when 89 given', () => {
const readable = toReadable(89);
assert.equal(readable, 'eighty nine');
});
it('Should return \'ninety\' when 90 given', () => {
const readable = toReadable(90);
assert.equal(readable, 'ninety');
});
it('Should return \'ninety one\' when 91 given', () => {
const readable = toReadable(91);
assert.equal(readable, 'ninety one');
});
it('Should return \'ninety two\' when 92 given', () => {
const readable = toReadable(92);
assert.equal(readable, 'ninety two');
});
it('Should return \'ninety three\' when 93 given', () => {
const readable = toReadable(93);
assert.equal(readable, 'ninety three');
});
it('Should return \'ninety four\' when 94 given', () => {
const readable = toReadable(94);
assert.equal(readable, 'ninety four');
});
it('Should return \'ninety five\' when 95 given', () => {
const readable = toReadable(95);
assert.equal(readable, 'ninety five');
});
it('Should return \'ninety six\' when 96 given', () => {
const readable = toReadable(96);
assert.equal(readable, 'ninety six');
});
it('Should return \'ninety seven\' when 97 given', () => {
const readable = toReadable(97);
assert.equal(readable, 'ninety seven');
});
it('Should return \'ninety eight\' when 98 given', () => {
const readable = toReadable(98);
assert.equal(readable, 'ninety eight');
});
it('Should return \'ninety nine\' when 99 given', () => {
const readable = toReadable(99);
assert.equal(readable, 'ninety nine');
});
it('Should return \'one hundred\' when 100 given', () => {
const readable = toReadable(100);
assert.equal(readable, 'one hundred');
});
it('Should return \'one hundred one\' when 101 given', () => {
const readable = toReadable(101);
assert.equal(readable, 'one hundred one');
});
it('Should return \'one hundred two\' when 102 given', () => {
const readable = toReadable(102);
assert.equal(readable, 'one hundred two');
});
it('Should return \'one hundred three\' when 103 given', () => {
const readable = toReadable(103);
assert.equal(readable, 'one hundred three');
});
it('Should return \'one hundred four\' when 104 given', () => {
const readable = toReadable(104);
assert.equal(readable, 'one hundred four');
});
it('Should return \'one hundred five\' when 105 given', () => {
const readable = toReadable(105);
assert.equal(readable, 'one hundred five');
});
it('Should return \'one hundred six\' when 106 given', () => {
const readable = toReadable(106);
assert.equal(readable, 'one hundred six');
});
it('Should return \'one hundred seven\' when 107 given', () => {
const readable = toReadable(107);
assert.equal(readable, 'one hundred seven');
});
it('Should return \'one hundred eight\' when 108 given', () => {
const readable = toReadable(108);
assert.equal(readable, 'one hundred eight');
});
it('Should return \'one hundred nine\' when 109 given', () => {
const readable = toReadable(109);
assert.equal(readable, 'one hundred nine');
});
it('Should return \'one hundred ten\' when 110 given', () => {
const readable = toReadable(110);
assert.equal(readable, 'one hundred ten');
});
it('Should return \'one hundred eleven\' when 111 given', () => {
const readable = toReadable(111);
assert.equal(readable, 'one hundred eleven');
});
it('Should return \'one hundred twelve\' when 112 given', () => {
const readable = toReadable(112);
assert.equal(readable, 'one hundred twelve');
});
it('Should return \'one hundred thirteen\' when 113 given', () => {
const readable = toReadable(113);
assert.equal(readable, 'one hundred thirteen');
});
it('Should return \'one hundred fourteen\' when 114 given', () => {
const readable = toReadable(114);
assert.equal(readable, 'one hundred fourteen');
});
it('Should return \'one hundred fifteen\' when 115 given', () => {
const readable = toReadable(115);
assert.equal(readable, 'one hundred fifteen');
});
it('Should return \'one hundred sixteen\' when 116 given', () => {
const readable = toReadable(116);
assert.equal(readable, 'one hundred sixteen');
});
it('Should return \'one hundred seventeen\' when 117 given', () => {
const readable = toReadable(117);
assert.equal(readable, 'one hundred seventeen');
});
it('Should return \'one hundred eighteen\' when 118 given', () => {
const readable = toReadable(118);
assert.equal(readable, 'one hundred eighteen');
});
it('Should return \'one hundred nineteen\' when 119 given', () => {
const readable = toReadable(119);
assert.equal(readable, 'one hundred nineteen');
});
it('Should return \'one hundred twenty\' when 120 given', () => {
const readable = toReadable(120);
assert.equal(readable, 'one hundred twenty');
});
it('Should return \'one hundred twenty one\' when 121 given', () => {
const readable = toReadable(121);
assert.equal(readable, 'one hundred twenty one');
});
it('Should return \'one hundred twenty two\' when 122 given', () => {
const readable = toReadable(122);
assert.equal(readable, 'one hundred twenty two');
});
it('Should return \'one hundred twenty three\' when 123 given', () => {
const readable = toReadable(123);
assert.equal(readable, 'one hundred twenty three');
});
it('Should return \'one hundred twenty four\' when 124 given', () => {
const readable = toReadable(124);
assert.equal(readable, 'one hundred twenty four');
});
it('Should return \'one hundred twenty five\' when 125 given', () => {
const readable = toReadable(125);
assert.equal(readable, 'one hundred twenty five');
});
it('Should return \'one hundred twenty six\' when 126 given', () => {
const readable = toReadable(126);
assert.equal(readable, 'one hundred twenty six');
});
it('Should return \'one hundred twenty seven\' when 127 given', () => {
const readable = toReadable(127);
assert.equal(readable, 'one hundred twenty seven');
});
it('Should return \'one hundred twenty eight\' when 128 given', () => {
const readable = toReadable(128);
assert.equal(readable, 'one hundred twenty eight');
});
it('Should return \'one hundred twenty nine\' when 129 given', () => {
const readable = toReadable(129);
assert.equal(readable, 'one hundred twenty nine');
});
it('Should return \'one hundred thirty\' when 130 given', () => {
const readable = toReadable(130);
assert.equal(readable, 'one hundred thirty');
});
it('Should return \'one hundred thirty one\' when 131 given', () => {
const readable = toReadable(131);
assert.equal(readable, 'one hundred thirty one');
});
it('Should return \'one hundred thirty two\' when 132 given', () => {
const readable = toReadable(132);
assert.equal(readable, 'one hundred thirty two');
});
it('Should return \'one hundred thirty three\' when 133 given', () => {
const readable = toReadable(133);
assert.equal(readable, 'one hundred thirty three');
});
it('Should return \'one hundred thirty four\' when 134 given', () => {
const readable = toReadable(134);
assert.equal(readable, 'one hundred thirty four');
});
it('Should return \'one hundred thirty five\' when 135 given', () => {
const readable = toReadable(135);
assert.equal(readable, 'one hundred thirty five');
});
it('Should return \'one hundred thirty six\' when 136 given', () => {
const readable = toReadable(136);
assert.equal(readable, 'one hundred thirty six');
});
it('Should return \'one hundred thirty seven\' when 137 given', () => {
const readable = toReadable(137);
assert.equal(readable, 'one hundred thirty seven');
});
it('Should return \'one hundred thirty eight\' when 138 given', () => {
const readable = toReadable(138);
assert.equal(readable, 'one hundred thirty eight');
});
it('Should return \'one hundred thirty nine\' when 139 given', () => {
const readable = toReadable(139);
assert.equal(readable, 'one hundred thirty nine');
});
it('Should return \'one hundred forty\' when 140 given', () => {
const readable = toReadable(140);
assert.equal(readable, 'one hundred forty');
});
it('Should return \'one hundred forty one\' when 141 given', () => {
const readable = toReadable(141);
assert.equal(readable, 'one hundred forty one');
});
it('Should return \'one hundred forty two\' when 142 given', () => {
const readable = toReadable(142);
assert.equal(readable, 'one hundred forty two');
});
it('Should return \'one hundred forty three\' when 143 given', () => {
const readable = toReadable(143);
assert.equal(readable, 'one hundred forty three');
});
it('Should return \'one hundred forty four\' when 144 given', () => {
const readable = toReadable(144);
assert.equal(readable, 'one hundred forty four');
});
it('Should return \'one hundred forty five\' when 145 given', () => {
const readable = toReadable(145);
assert.equal(readable, 'one hundred forty five');
});
it('Should return \'one hundred forty six\' when 146 given', () => {
const readable = toReadable(146);
assert.equal(readable, 'one hundred forty six');
});
it('Should return \'one hundred forty seven\' when 147 given', () => {
const readable = toReadable(147);
assert.equal(readable, 'one hundred forty seven');
});
it('Should return \'one hundred forty eight\' when 148 given', () => {
const readable = toReadable(148);
assert.equal(readable, 'one hundred forty eight');
});
it('Should return \'one hundred forty nine\' when 149 given', () => {
const readable = toReadable(149);
assert.equal(readable, 'one hundred forty nine');
});
it('Should return \'one hundred fifty\' when 150 given', () => {
const readable = toReadable(150);
assert.equal(readable, 'one hundred fifty');
});
it('Should return \'one hundred fifty one\' when 151 given', () => {
const readable = toReadable(151);
assert.equal(readable, 'one hundred fifty one');
});
it('Should return \'one hundred fifty two\' when 152 given', () => {
const readable = toReadable(152);
assert.equal(readable, 'one hundred fifty two');
});
it('Should return \'one hundred fifty three\' when 153 given', () => {
const readable = toReadable(153);
assert.equal(readable, 'one hundred fifty three');
});
it('Should return \'one hundred fifty four\' when 154 given', () => {
const readable = toReadable(154);
assert.equal(readable, 'one hundred fifty four');
});
it('Should return \'one hundred fifty five\' when 155 given', () => {
const readable = toReadable(155);
assert.equal(readable, 'one hundred fifty five');
});
it('Should return \'one hundred fifty six\' when 156 given', () => {
const readable = toReadable(156);
assert.equal(readable, 'one hundred fifty six');
});
it('Should return \'one hundred fifty seven\' when 157 given', () => {
const readable = toReadable(157);
assert.equal(readable, 'one hundred fifty seven');
});
it('Should return \'one hundred fifty eight\' when 158 given', () => {
const readable = toReadable(158);
assert.equal(readable, 'one hundred fifty eight');
});
it('Should return \'one hundred fifty nine\' when 159 given', () => {
const readable = toReadable(159);
assert.equal(readable, 'one hundred fifty nine');
});
it('Should return \'one hundred sixty\' when 160 given', () => {
const readable = toReadable(160);
assert.equal(readable, 'one hundred sixty');
});
it('Should return \'one hundred sixty one\' when 161 given', () => {
const readable = toReadable(161);
assert.equal(readable, 'one hundred sixty one');
});
it('Should return \'one hundred sixty two\' when 162 given', () => {
const readable = toReadable(162);
assert.equal(readable, 'one hundred sixty two');
});
it('Should return \'one hundred sixty three\' when 163 given', () => {
const readable = toReadable(163);
assert.equal(readable, 'one hundred sixty three');
});
it('Should return \'one hundred sixty four\' when 164 given', () => {
const readable = toReadable(164);
assert.equal(readable, 'one hundred sixty four');
});
it('Should return \'one hundred sixty five\' when 165 given', () => {
const readable = toReadable(165);
assert.equal(readable, 'one hundred sixty five');
});