File tree Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -44,3 +44,6 @@ description = "cross"
4444
4545[dd9d4ca8-9e68-4f78-a677-a2a70fd7a7b8 ]
4646description = " large garden"
47+
48+ [6e4ac13a-3e43-4728-a2e3-3551d4b1a996 ]
49+ description = " multiple adjacent flowers"
Original file line number Diff line number Diff line change @@ -123,3 +123,8 @@ Execute (large garden):
123123 \ '1*22*2',
124124 \ '111111']
125125 AssertEqual g:expected, Annotate(g:garden)
126+
127+ Execute (multiple adjacent flowers):
128+ let g:garden = [' ** ']
129+ let g:expected = ['1**1']
130+ AssertEqual g:expected, Annotate(g:garden)
Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ description = "invalid character in isbn is not treated as zero"
3030[28025280-2c39-4092-9719-f3234b89c627 ]
3131description = " X is only valid as a check digit"
3232
33+ [8005b57f-f194-44ee-88d2-a77ac4142591 ]
34+ description = " only one check digit is allowed"
35+
36+ [fdb14c99-4cf8-43c5-b06d-eb1638eff343 ]
37+ description = " X is not substituted by the value 10"
38+
3339[f6294e61-7e79-46b3-977b-f48789a4945b ]
3440description = " valid isbn without separating dashes"
3541
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ Execute (invalid character in isbn is not treated as zero):
1919Execute (X is only valid as a check digit):
2020 Assert !IsValid("3-598-2X507-9")
2121
22+ Execute (only one check digit is allowed):
23+ Assert !IsValid("3-598-21508-96")
24+
25+ Execute (X is not substituted by the value 10):
26+ Assert !IsValid("3-598-2X507-5")
27+
2228Execute (valid isbn without separating dashes):
2329 Assert IsValid("3598215088")
2430
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ Yaʻqūb expects to use numbers from 1 up to 999.
55
66Rules:
77
8- - Numbers ending in 1 (except for 11) → ` "st" `
9- - Numbers ending in 2 (except for 12) → ` "nd" `
10- - Numbers ending in 3 (except for 13) → ` "rd" `
8+ - Numbers ending in 1 (unless ending in 11) → ` "st" `
9+ - Numbers ending in 2 (unless ending in 12) → ` "nd" `
10+ - Numbers ending in 3 (unless ending in 13) → ` "rd" `
1111- All other numbers → ` "th" `
1212
1313Examples:
You can’t perform that action at this time.
0 commit comments