File: libc_spec.rb

package info (click to toggle)
ruby-ffi-rzmq-core 1.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 192 kB
  • sloc: ruby: 524; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'spec_helper'

describe LibC do

  it "exposes the malloc function" do
    expect(LibC).to respond_to(:malloc)
  end

  it "exposes the free function" do
    expect(LibC).to respond_to(:free)
    expect(LibC::Free).to_not be_nil
  end

  it "exposes the memcpy function" do
    expect(LibC).to respond_to(:memcpy)
  end

end