Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/generate-spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions exercises/practice/custom-set/custom_set_spec.moon
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
8 changes: 4 additions & 4 deletions exercises/practice/robot-name/robot_name_spec.moon
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ describe 'robot-name', ->
assert.is.equal sample_size, table_size seen


-- 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
-- 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.

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
Expand Down
Loading