Skip to content

Commit 1a2985f

Browse files
authored
Rename controlling env var for bonus tests (#137)
* rename env variable * make the marker comment consistent with the spec_generator template
1 parent 29653fc commit 1a2985f

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

bin/generate-spec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ if spec_generator.bonus
150150
151151
152152
-- The next tests are optional.
153-
-- Set the environment variable ENABLE_OPTIONAL_TESTS to run them:
154-
-- For example, in bash run: ENABLE_OPTIONAL_TESTS=true busted
153+
-- Set the environment variable BONUS_TESTS to run them:
154+
-- For example, in bash run: BONUS_TESTS=true busted
155155
156-
if os.getenv('ENABLE_OPTIONAL_TESTS') == 'true'
156+
if os.getenv('BONUS_TESTS') == 'true'
157157
describe 'Bonus tests', ->
158158
]]
159159
spec ..= spec_generator.bonus

exercises/practice/custom-set/custom_set_spec.moon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ describe 'custom-set', ->
237237
assert.is.true result\is_equal expected
238238

239239
-- The next tests are optional.
240-
-- Set the environment variable ENABLE_OPTIONAL_TESTS to run them:
241-
-- For example, in bash run: ENABLE_OPTIONAL_TESTS=true busted
240+
-- Set the environment variable BONUS_TESTS to run them:
241+
-- For example, in bash run: BONUS_TESTS=true busted
242242

243-
if os.getenv('ENABLE_OPTIONAL_TESTS') == 'true'
243+
if os.getenv('BONUS_TESTS') == 'true'
244244
describe 'Bonus tests', ->
245245
pending 'use the equal operator, are equal', ->
246246
set1 = CustomSet {1, 2, 3, 4}

exercises/practice/robot-name/robot_name_spec.moon

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ describe 'robot-name', ->
5656
assert.is.equal sample_size, table_size seen
5757

5858

59-
-- The next test is optional.
60-
-- Set the environment variable ENABLE_OPTIONAL_TESTS to run it:
61-
-- For example, in bash run: ENABLE_OPTIONAL_TESTS=true busted
59+
-- The next tests are optional.
60+
-- Set the environment variable BONUS_TESTS to run it:
61+
-- For example, in bash run: BONUS_TESTS=true busted
6262
-- Check the performance tip in the hints.
6363

64-
if os.getenv('ENABLE_OPTIONAL_TESTS') == 'true'
64+
if os.getenv('BONUS_TESTS') == 'true'
6565
pending 'all the robots and more', ->
6666
Robot\reset_names!
6767
sample_size = 26 * 26 * 1000

0 commit comments

Comments
 (0)