Skip to content

Commit

Permalink
Add test for rubys#150
Browse files Browse the repository at this point in the history
  • Loading branch information
stevecheckoway committed Nov 20, 2020
1 parent 9b5a886 commit fd33f53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Deprecated
### Removed
### Fixed
- Fixed crash where Ruby objects constructed in C can be garbage collected.
### Security

## [2.0.2] - 2019-11-19
Expand Down
5 changes: 5 additions & 0 deletions test/test_nokogumbo.rb
@@ -1,5 +1,10 @@
# encoding: utf-8
require 'nokogumbo'

# Make sure that Ruby objects constructed in C are treated as GC roots.
# See: https://github.com/rubys/nokogumbo/pull/150
GC.verify_compaction_references(toward: :empty, double_heap: true)

require 'minitest/autorun'

class TestNokogumbo < Minitest::Test
Expand Down

0 comments on commit fd33f53

Please sign in to comment.