<commit_before>require 'spec_helper'

describe Gregex::RegexParser do
  describe "#original_options" do
    describe "checks if option i is given" do
      it "with i in original regex and as option given" do
        a = Gregex.new(/a/i, "i")
        expect(a).to match("A")
      end

      it "with i only given as option" do
        a = Gregex.new(/a/, "i")
        expect(a).to match("A")
      end
    end
  end
end<commit_msg>Add missing spec for options<commit_after>require 'spec_helper'

describe Gregex::RegexParser do
  describe "#original_options" do
    describe "checks if option i is given" do
      it "with i in original regex and as option given" do
        a = Gregex.new(/a/i, "i")
        expect(a).to match("A")
      end

      it "with i only given as option" do
        a = Gregex.new(/a/, "i")
        expect(a).to match("A")
      end

      it "with i only given as regex option" do
        a = Gregex.new(/a/i)
        expect(a).to match("A")
      end
      it "with i only given as option" do
        a = Gregex.new(/a/, "i")
        expect(a).to match("A")
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11559139784946236, 'fraction_numerical': 0.0, 'mean_word_length': 2.1201117318435756, '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': '5694870', 'n_tokens_mistral': 366, 'n_tokens_neox': 358, 'n_words': 131}