You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/runtests.jl
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,9 @@ using SpelledOut
22
22
@testspelled_out(2^log2(3390000), lang =:en) =="three million, three hundred ninety thousand"# should convert 3.3899999999999986e6 to an integer
23
23
@testspelled_out(1000000.01, lang =:en) =="one million point zero one"# parse big floats correctly (i.e., avoid scientific notation. Caveat: this is slow)
24
24
@testspelled_out(1//3, lang =:en_UK) =="one third"
25
+
@testspelled_out(2//3, lang =:en_UK) =="two thirds"
25
26
@testspelled_out(1//5, lang =:en_UK) =="one fifth"
27
+
@testspelled_out(2//5, lang =:en_UK) =="two fifths"
26
28
@testspelled_out(1//102, lang =:en_UK) =="one one hundred and second"
27
29
@testspelled_out(1//102, lang =:en_US) =="one one hundred second"
28
30
@testspelled_out(5//102, lang =:en_UK) =="five one hundred and seconds"
@@ -31,6 +33,18 @@ using SpelledOut
31
33
@testspelled_out(40//1, lang =:en_UK) =="forty"
32
34
@testspelled_out(40//2, lang =:en_UK) =="twenty"
33
35
@testspelled_out(40//6, lang =:en_UK) =="twenty thirds"
0 commit comments