From 8d7f758303056ec4eaac94e8b22b7f874f8b9e53 Mon Sep 17 00:00:00 2001 From: Colin Pitrat Date: Mon, 4 Aug 2025 07:08:58 +0100 Subject: [PATCH 1/2] 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 --- exercises/practice/say/.docs/instructions.md | 3 +-- exercises/practice/say/.meta/config.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/exercises/practice/say/.docs/instructions.md b/exercises/practice/say/.docs/instructions.md index ad3d34778..49635040e 100644 --- a/exercises/practice/say/.docs/instructions.md +++ b/exercises/practice/say/.docs/instructions.md @@ -1,6 +1,6 @@ # Instructions -Given a number from 0 to 999,999,999,999, spell out that number in English. +Given a positive integer from 0 to u64::MAX, spell out that number in English. ## Step 1 @@ -16,7 +16,6 @@ Some good test cases for this program are: - 14 - 50 - 98 -- -1 - 100 ### Extension diff --git a/exercises/practice/say/.meta/config.json b/exercises/practice/say/.meta/config.json index 28df68200..8db30b09e 100644 --- a/exercises/practice/say/.meta/config.json +++ b/exercises/practice/say/.meta/config.json @@ -32,7 +32,7 @@ ".meta/example.rs" ] }, - "blurb": "Given a number from 0 to 999,999,999,999, spell out that number in English.", + "blurb": "Given a number from 0 to u64::MAX, spell out that number in English.", "source": "A variation on the JavaRanch CattleDrive, Assignment 4", "source_url": "https://web.archive.org/web/20240907035912/https://coderanch.com/wiki/718804" } From d058e5568738e0b6e498f382c333ca2b034db535 Mon Sep 17 00:00:00 2001 From: Colin Pitrat Date: Mon, 4 Aug 2025 07:12:22 +0100 Subject: [PATCH 2/2] Give an idea of how much u64::MAX is --- exercises/practice/say/.docs/instructions.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercises/practice/say/.docs/instructions.md b/exercises/practice/say/.docs/instructions.md index 49635040e..ac8a4ecc9 100644 --- a/exercises/practice/say/.docs/instructions.md +++ b/exercises/practice/say/.docs/instructions.md @@ -1,6 +1,7 @@ # Instructions -Given a positive integer from 0 to u64::MAX, spell out that number in English. +Given a positive integer from 0 to u64::MAX (a bit more than 18 quintillion), +spell out that number in English. ## Step 1