Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
davvd committed Dec 6, 2023
1 parent 03d328f commit e8596ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Layout/ParameterAlignment:
Enabled: false
Metrics/PerceivedComplexity:
Max: 45
Metrics/LineLength:
Layout/LineLength:
Max: 120
Style/MultilineBlockChain:
Enabled: false
Expand Down
9 changes: 9 additions & 0 deletions test/test_id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ def test_generates_new_id
end
end

def test_generates_different_ids
before = ''
500.times do
id = Zold::Id.new
assert id.to_s != before.to_s
before = id
end
end

def test_list_of_banned_ids_is_not_empty
assert(!Zold::Id::BANNED.empty?)
end
Expand Down

0 comments on commit e8596ec

Please sign in to comment.