spec: Run an example of ffi

This commit is contained in:
Cheng Zhao 2015-09-24 15:08:38 +08:00
parent 497732fb6f
commit e3fab8b5b3

View file

@ -24,7 +24,9 @@ describe 'third-party module', ->
describe 'ffi', ->
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', ->
Q = require 'q'