Skip to content

Commit 8d7f758

Browse files
committed
Update instructions to match tests and function signature.
Tests are verifying that the function works with i64::MAX and u64::MAX so it needs to go beyond 999_999_999_999. The function signature takes a u64 so saying to test with -1 doesn't make sense. https://forum.exercism.org/t/say-instructions-are-inconsistent-with-test/18695
1 parent 54ab45a commit 8d7f758

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

exercises/practice/say/.docs/instructions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Instructions
22

3-
Given a number from 0 to 999,999,999,999, spell out that number in English.
3+
Given a positive integer from 0 to u64::MAX, spell out that number in English.
44

55
## Step 1
66

@@ -16,7 +16,6 @@ Some good test cases for this program are:
1616
- 14
1717
- 50
1818
- 98
19-
- -1
2019
- 100
2120

2221
### Extension

exercises/practice/say/.meta/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
".meta/example.rs"
3333
]
3434
},
35-
"blurb": "Given a number from 0 to 999,999,999,999, spell out that number in English.",
35+
"blurb": "Given a number from 0 to u64::MAX, spell out that number in English.",
3636
"source": "A variation on the JavaRanch CattleDrive, Assignment 4",
3737
"source_url": "https://web.archive.org/web/20240907035912/https://coderanch.com/wiki/718804"
3838
}

0 commit comments

Comments
 (0)