Skip to content

Commit

Permalink
test: add test for the void type get()/set() functions
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed May 11, 2012
1 parent 7c52d0d commit af24c32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/ref-deref.js
Expand Up @@ -53,4 +53,9 @@ describe('ref(), deref()', function () {
assert.equal(127, ref.deref(test))
})

it('should not throw when calling ref()/deref() on a `void` type', function () {
var test = ref.alloc(ref.types.void)
assert.strictEqual(null, test.deref())
})

})

0 comments on commit af24c32

Please sign in to comment.