<commit_before>
require 'rspec'

load 'lib/biointerchange/core.rb'
load 'lib/biointerchange/exceptions.rb'

describe BioInterchange::Exceptions do
  describe 'error and exception creation tests' do
    it 'format error' do
      expect { raise BioInterchange::Exceptions::InputFormatError }.to raise_error(BioInterchange::Exceptions::BioInterchangeError)
    end
    
    it 'reader error' do
      expect { raise BioInterchange::Exceptions::ImplementationReaderError }.to raise_error(BioInterchange::Exceptions::ImplementationError)
    end
    
    it 'model error' do
      expect { raise BioInterchange::Exceptions::ImplementationModelError }.to raise_error(BioInterchange::Exceptions::ImplementationError)
    end
    
    it 'writer error' do
      expect { raise BioInterchange::Exceptions::ImplementationWriterError }.to raise_error(BioInterchange::Exceptions::ImplementationError)
    end
    
  end
end
<commit_msg>Changed unit test names for exception testing, so that they cannot be misinterpreted on monochrome displays.<commit_after>
require 'rspec'

load 'lib/biointerchange/core.rb'
load 'lib/biointerchange/exceptions.rb'

describe BioInterchange::Exceptions do
  describe 'error and exception creation tests' do
    it 'raising of InputFormatError' do
      expect { raise BioInterchange::Exceptions::InputFormatError }.to raise_error(BioInterchange::Exceptions::BioInterchangeError)
    end
    
    it 'raising of ImplementationReaderError' do
      expect { raise BioInterchange::Exceptions::ImplementationReaderError }.to raise_error(BioInterchange::Exceptions::ImplementationError)
    end
    
    it 'raising of ImplementationModelError' do
      expect { raise BioInterchange::Exceptions::ImplementationModelError }.to raise_error(BioInterchange::Exceptions::ImplementationError)
    end
    
    it 'raising of ImplementationWriterError' do
      expect { raise BioInterchange::Exceptions::ImplementationWriterError }.to raise_error(BioInterchange::Exceptions::ImplementationError)
    end
    
  end
end

{'fraction_non_alphanumeric': 0.07874015748031496, 'fraction_numerical': 0.0, 'mean_word_length': 5.141993957703927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '2937553', 'n_tokens_mistral': 562, 'n_tokens_neox': 546, 'n_words': 138}