Skip to content

Commit b3f4ab8

Browse files
andyjiang9claude
andcommitted
Add missing say test cases from canonical data (#855)
The say test suite was missing four cases that exist in the problem-specifications canonical data: "thirty" (30), "ninety-nine" (99), "two hundred" (200) and "nine hundred ninety-nine" (999). Add the four cases to SayTest.scala (marked pending, matching the existing convention) and sync their UUIDs into .meta/tests.toml. The reference solution in .meta/Example.scala already handles all four; verified all 19 tests pass via bin/test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 9970415 commit b3f4ab8

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

exercises/practice/say/.meta/tests.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,24 @@ description = "twenty"
2424
[d78601eb-4a84-4bfa-bf0e-665aeb8abe94]
2525
description = "twenty-two"
2626

27+
[f010d4ca-12c9-44e9-803a-27789841adb1]
28+
description = "thirty"
29+
30+
[738ce12d-ee5c-4dfb-ad26-534753a98327]
31+
description = "ninety-nine"
32+
2733
[e417d452-129e-4056-bd5b-6eb1df334dce]
2834
description = "one hundred"
2935

3036
[d6924f30-80ba-4597-acf6-ea3f16269da8]
3137
description = "one hundred twenty-three"
3238

39+
[2f061132-54bc-4fd4-b5df-0a3b778959b9]
40+
description = "two hundred"
41+
42+
[feed6627-5387-4d38-9692-87c0dbc55c33]
43+
description = "nine hundred ninety-nine"
44+
3345
[3d83da89-a372-46d3-b10d-de0c792432b3]
3446
description = "one thousand"
3547

exercises/practice/say/src/test/scala/SayTest.scala

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ class SayTest extends AnyFunSuite with Matchers {
2929
Say.inEnglish(22) should be(Some("twenty-two"))
3030
}
3131

32+
test("thirty") {
33+
pending
34+
Say.inEnglish(30) should be(Some("thirty"))
35+
}
36+
37+
test("ninety-nine") {
38+
pending
39+
Say.inEnglish(99) should be(Some("ninety-nine"))
40+
}
41+
3242
test("one hundred") {
3343
pending
3444
Say.inEnglish(100) should be(Some("one hundred"))
@@ -39,6 +49,16 @@ class SayTest extends AnyFunSuite with Matchers {
3949
Say.inEnglish(123) should be(Some("one hundred twenty-three"))
4050
}
4151

52+
test("two hundred") {
53+
pending
54+
Say.inEnglish(200) should be(Some("two hundred"))
55+
}
56+
57+
test("nine hundred ninety-nine") {
58+
pending
59+
Say.inEnglish(999) should be(Some("nine hundred ninety-nine"))
60+
}
61+
4262
test("one thousand") {
4363
pending
4464
Say.inEnglish(1000) should be(Some("one thousand"))

0 commit comments

Comments
 (0)