File: int16_le_spec.rb

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

describe Net::NTLM::Int16LE do

  int_values = {
    :default     => 15,
    :default_hex => "\x0F\x00",
    :alt         => 14,
    :alt_hex     => "\x0E\x00",
    :small       => "\x0F",
    :size        => 2,
    :bits        => 16
  }

  it_behaves_like 'a field', 15, false
  it_behaves_like 'an integer field', int_values

end