<commit_before># This file specifies behaviour for the methods of
# Continuation. The mechanics thereof may be further
# examined in spec/language.
#
require File.dirname(__FILE__) + '/../../spec_helper'

# Class methods
#   -
#
# Instance methods
#   #call             OK
#   #[]               OK

module ContinuationSpecs
  def self.create_cc
    Kernel.callcc { |cc| return cc }
    :create_cc
  end
end

not_supported_on :ironruby do
  describe "Creating a Continuation object" do
    it "must be done through Kernel.callcc, no .new" do
      lambda { Continuation.new }.should raise_error(NoMethodError)

      cont = ContinuationSpecs.create_cc
      cont.class.should == Continuation
    end
  end<commit_msg>Continuation: "require 'continuation'" on 1.9.<commit_after># This file specifies behaviour for the methods of
# Continuation. The mechanics thereof may be further
# examined in spec/language.
#
require File.dirname(__FILE__) + '/../../spec_helper'

ruby_version_is "1.9" do
  require 'continuation'
end

# Class methods
#   -
#
# Instance methods
#   #call             OK
#   #[]               OK

module ContinuationSpecs
  def self.create_cc
    Kernel.callcc { |cc| return cc }
    :create_cc
  end
end

not_supported_on :ironruby do
  describe "Creating a Continuation object" do
    it "must be done through Kernel.callcc, no .new" do
      lambda { Continuation.new }.should raise_error(NoMethodError)

      cont = ContinuationSpecs.create_cc
      cont.class.should == Continuation
    end
  end
{'fraction_non_alphanumeric': 0.0881578947368421, 'fraction_numerical': 0.002631578947368421, 'mean_word_length': 2.971279373368146, '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': '6944974', 'n_tokens_mistral': 467, 'n_tokens_neox': 454, 'n_words': 145}