File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed 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 @@ -29,6 +29,12 @@ val testsuite =
2929 test " X is only valid as a check digit"
3030 (fn _ => isValid " 3-598-2X507-9" |> Expect.falsy),
3131
32+ test " only one check digit is allowed"
33+ (fn _ => isValid " 3-598-21508-96" |> Expect.falsy),
34+
35+ test " X is not substituted by the value 10"
36+ (fn _ => isValid " 3-598-2X507-5" |> Expect.falsy),
37+
3238 test " valid isbn without separating dashes"
3339 (fn _ => isValid " 3598215088" |> Expect.truthy),
3440
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