spec: Run an example of ffi
This commit is contained in:
parent
497732fb6f
commit
e3fab8b5b3
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,9 @@ describe 'third-party module', ->
|
||||||
|
|
||||||
describe 'ffi', ->
|
describe 'ffi', ->
|
||||||
it 'does not crash', ->
|
it 'does not crash', ->
|
||||||
require 'ffi'
|
ffi = require 'ffi'
|
||||||
|
libm = ffi.Library('libm', ceil: [ 'double', [ 'double' ] ])
|
||||||
|
assert.equal libm.ceil(1.5), 2
|
||||||
|
|
||||||
describe 'q', ->
|
describe 'q', ->
|
||||||
Q = require 'q'
|
Q = require 'q'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue