Sha256: 7265f8a7a195cfeaa2d4fc34e2c6d4c2bcaab1d23004eb566952935b53d84f32

Contents?: true

Size: 591 Bytes

Versions: 1

Compression:

Stored size: 591 Bytes

Contents

require 'spec_helper'

module NNCore
  describe "nn_bind" do

    context "given an initialized library" do

      it "returns 0 and populates the pointers with the major, minor and patch version numbers" do
        major = FFI::MemoryPointer.new(:int)
        minor = FFI::MemoryPointer.new(:int)
        patch = FFI::MemoryPointer.new(:int)

        # there is no return value for this function
        LibNanomsg.nn_version(major, minor, patch)
        
        major.read_int.should >= 0
        minor.read_int.should >= 0
        patch.read_int.should >= 0
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nn-core-0.1.5 spec/nn_version_spec.rb