<commit_before>require 'lib/plist'

describe PList::Parser do

  describe ".parse" do
  
    before(:each) do
      @plist = PList::Parser.parse(File.join("spec", "files", "itunes.xml"))
    end

    it "parses correctly" do
      @plist['Major Version'].should == 1
      @plist['Minor Version'].should == 1
      @plist['Application Version'].should == '9.0.3'
      @plist['Features'].should == 5
      @plist['Show Content Ratings'].should == true
      @plist['Music Folder'].should == 'file://localhost/H:/Music/iTunes/iTunes%20Music/'
      @plist['Library Persistent ID'].should == 'E86929F823A6944A'
      @plist['Tracks'].size.should == 2
      @plist['Tracks']['123']['Name'].should == 'Lacquer Head' 
      @plist['Playlists'][0]['Name'].should == 'All' 
    end

  end

end<commit_msg>Added a couple more tests<commit_after>require 'lib/plist'

describe PList::Parser do

  describe ".parse" do
  
    before(:each) do
      @plist = PList::Parser.parse(File.join("spec", "files", "itunes.xml"))
    end

    it "parses correctly" do
      @plist['Major Version'].should == 1
      @plist['Minor Version'].should == 1
      @plist['Application Version'].should == '9.0.3'
      @plist['Features'].should == 5
      @plist['Show Content Ratings'].should == true
      @plist['Music Folder'].should == 'file://localhost/H:/Music/iTunes/iTunes%20Music/'
      @plist['Library Persistent ID'].should == 'E86929F823A6944A'
      @plist['Tracks'].size.should == 2
      @plist['Tracks']['123']['Name'].should == 'Lacquer Head' 
      @plist['Playlists'][0]['Name'].should == 'All'
      @plist['Playlists'][0]['Playlist Items'][0]['Track ID'].should == 123
      @plist['Playlists'][0]['Playlist Items'][1]['Track ID'].should == 124
    end

  end

end
{'fraction_non_alphanumeric': 0.1955656623081296, 'fraction_numerical': 0.03411028993746447, 'mean_word_length': 3.489795918367347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3579938', 'n_tokens_mistral': 632, 'n_tokens_neox': 564, 'n_words': 113}