From dc938e4c3a4a3892a976ed6285ae9dac5a76b29c Mon Sep 17 00:00:00 2001 From: Glenn Jackman Date: Thu, 9 Apr 2026 09:18:50 -0400 Subject: [PATCH 1/2] rename env variable --- bin/generate-spec | 6 +++--- exercises/practice/custom-set/custom_set_spec.moon | 6 +++--- exercises/practice/robot-name/robot_name_spec.moon | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/generate-spec b/bin/generate-spec index 04068cf..c0dc900 100755 --- a/bin/generate-spec +++ b/bin/generate-spec @@ -150,10 +150,10 @@ if spec_generator.bonus -- The next tests are optional. - -- Set the environment variable ENABLE_OPTIONAL_TESTS to run them: - -- For example, in bash run: ENABLE_OPTIONAL_TESTS=true busted + -- Set the environment variable BONUS_TESTS to run them: + -- For example, in bash run: BONUS_TESTS=true busted - if os.getenv('ENABLE_OPTIONAL_TESTS') == 'true' + if os.getenv('BONUS_TESTS') == 'true' describe 'Bonus tests', -> ]] spec ..= spec_generator.bonus diff --git a/exercises/practice/custom-set/custom_set_spec.moon b/exercises/practice/custom-set/custom_set_spec.moon index c288f1f..568db24 100644 --- a/exercises/practice/custom-set/custom_set_spec.moon +++ b/exercises/practice/custom-set/custom_set_spec.moon @@ -237,10 +237,10 @@ describe 'custom-set', -> assert.is.true result\is_equal expected -- The next tests are optional. - -- Set the environment variable ENABLE_OPTIONAL_TESTS to run them: - -- For example, in bash run: ENABLE_OPTIONAL_TESTS=true busted + -- Set the environment variable BONUS_TESTS to run them: + -- For example, in bash run: BONUS_TESTS=true busted - if os.getenv('ENABLE_OPTIONAL_TESTS') == 'true' + if os.getenv('BONUS_TESTS') == 'true' describe 'Bonus tests', -> pending 'use the equal operator, are equal', -> set1 = CustomSet {1, 2, 3, 4} diff --git a/exercises/practice/robot-name/robot_name_spec.moon b/exercises/practice/robot-name/robot_name_spec.moon index 4f0126a..33f63ca 100644 --- a/exercises/practice/robot-name/robot_name_spec.moon +++ b/exercises/practice/robot-name/robot_name_spec.moon @@ -57,11 +57,11 @@ describe 'robot-name', -> -- The next test is optional. - -- Set the environment variable ENABLE_OPTIONAL_TESTS to run it: - -- For example, in bash run: ENABLE_OPTIONAL_TESTS=true busted + -- Set the environment variable BONUS_TESTS to run it: + -- For example, in bash run: BONUS_TESTS=true busted -- Check the performance tip in the hints. - if os.getenv('ENABLE_OPTIONAL_TESTS') == 'true' + if os.getenv('BONUS_TESTS') == 'true' pending 'all the robots and more', -> Robot\reset_names! sample_size = 26 * 26 * 1000 From b04e7762a5243a8249aed5cf90ab18cea2dfc436 Mon Sep 17 00:00:00 2001 From: Glenn Jackman Date: Thu, 9 Apr 2026 10:58:22 -0400 Subject: [PATCH 2/2] make the marker comment consistent with the spec_generator template --- exercises/practice/robot-name/robot_name_spec.moon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/practice/robot-name/robot_name_spec.moon b/exercises/practice/robot-name/robot_name_spec.moon index 33f63ca..df686f2 100644 --- a/exercises/practice/robot-name/robot_name_spec.moon +++ b/exercises/practice/robot-name/robot_name_spec.moon @@ -56,7 +56,7 @@ describe 'robot-name', -> assert.is.equal sample_size, table_size seen - -- The next test is optional. + -- The next tests are optional. -- Set the environment variable BONUS_TESTS to run it: -- For example, in bash run: BONUS_TESTS=true busted -- Check the performance tip in the hints.