File: int32_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 (19 lines) | stat: -rw-r--r-- 411 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'spec_helper'

describe Net::NTLM::Int32LE do

  int_values = {
      :default     => 252716124,
      :default_hex => "\x5C\x24\x10\x0f",
      :alt         => 235938908,
      :alt_hex     => "\x5C\x24\x10\x0e",
      :small       => "\x0F\x00",
      :size        => 4,
      :bits        => 32
  }


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

end