<commit_before>require 'spec_helper'
require 'nmap/ip_id_sequence'

describe IpIdSequence do
  let(:xml) { XML.new(Helpers::SCAN_FILE) }

  subject { xml.hosts.first.ip_id_sequence }

  it "should be accessible from host objects" do
    subject.should be_kind_of(IpIdSequence)
  end

  it "should parse the description" do
    subject.description.should == "Incremental"
  end

  it "should parse the values" do
    subject.values.should == [0x1FB0, 0x1FB2, 0x1FB4, 0x1FB6, 0x1FB8, 0x1FBA]
  end
end<commit_msg>Use the new scan.xml.<commit_after>require 'spec_helper'
require 'nmap/ip_id_sequence'

describe IpIdSequence do
  subject { @xml.hosts.first.ip_id_sequence }

  it "should be accessible from host objects" do
    subject.should be_kind_of(IpIdSequence)
  end

  it "should parse the description" do
    subject.description.should == "All zeros"
  end

  it "should parse the values" do
    subject.values.should == [0, 0, 0, 0, 0, 0]
  end
end
{'fraction_non_alphanumeric': 0.09538784067085954, 'fraction_numerical': 0.02410901467505241, 'mean_word_length': 4.106951871657754, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1753347', 'n_tokens_mistral': 354, 'n_tokens_neox': 332, 'n_words': 93}