File: libc_spec.rb

package info (click to toggle)
ruby-ethon 0.16.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 676 kB
  • sloc: ruby: 5,403; sh: 9; makefile: 8
file content (14 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true
require 'spec_helper'

describe Ethon::Libc do
  describe "#getdtablesize", :if => !Ethon::Curl.windows? do
    it "returns an integer" do
      expect(Ethon::Libc.getdtablesize).to be_a(Integer)
    end

    it "returns bigger zero", :if => !Ethon::Curl.windows? do
      expect(Ethon::Libc.getdtablesize).to_not be_zero
    end
  end
end