Skip to content

Commit

Permalink
Merge pull request #119 from fatkodima/ruby-3.3
Browse files Browse the repository at this point in the history
Add Ruby 3.3 to CI tests
  • Loading branch information
SamSaffron authored Jun 17, 2024
2 parents c0a7cf5 + 71843bb commit c113496
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ 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: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down
6 changes: 5 additions & 1 deletion test/test_reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c113496

Please sign in to comment.