diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ab6327..17a8267 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: name: Ruby ${{ matrix.ruby }} strategy: matrix: - ruby: ["2.6", "2.7", "3.0", "3.1", "3.2"] + ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 diff --git a/test/test_reporter.rb b/test/test_reporter.rb index 127d4af..f7a1827 100644 --- a/test/test_reporter.rb +++ b/test/test_reporter.rb @@ -240,10 +240,14 @@ def test_no_strings_retained_report # 3 times "0", 2 times for short interpolated strings, 3 times for long interpolated strings total_allocated = 5 * (3 + 2 + 3 + 3) unique = 20 - else + elsif RUBY_VERSION < '3.3' # 2 times for short interpolated strings, 3 times for long interpolated strings total_allocated = 5 * (2 + 3 + 3) unique = 15 + else + # 2 times for short interpolated strings, 2 times for long interpolated strings + total_allocated = 5 * (2 + 2 + 2) + unique = 15 end assert_equal(total_allocated, results.total_allocated, "#{total_allocated} strings should be allocated")