From e8596ecf6dfcd79303610b12e0be060052dae872 Mon Sep 17 00:00:00 2001 From: davvd Date: Wed, 6 Dec 2023 12:02:44 +0500 Subject: [PATCH] extra test --- .rubocop.yml | 2 +- test/test_id.rb | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 4fafd5a5..85498d14 100755 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -39,7 +39,7 @@ Layout/ParameterAlignment: Enabled: false Metrics/PerceivedComplexity: Max: 45 -Metrics/LineLength: +Layout/LineLength: Max: 120 Style/MultilineBlockChain: Enabled: false diff --git a/test/test_id.rb b/test/test_id.rb index 2b89e60d..55e911c0 100644 --- a/test/test_id.rb +++ b/test/test_id.rb @@ -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