File: int64_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-- 509 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::Int64LE do

  int_values = {
      :default     => 5294967295,
      :default_hex => [5294967295 & 0x00000000ffffffff, 5294967295 >> 32].pack("V2"),
      :alt         => 5294967294,
      :alt_hex     => [5294967294 & 0x00000000ffffffff, 5294967294 >> 32].pack("V2"),
      :small       => "\x5C\x24\x10\x0f",
      :size        => 8,
      :bits        => 64
  }


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

end