<commit_before>require File.dirname(__FILE__) + '/../spec_helper'

describe "Interfaces" do
  csc <<-EOL
    public interface IEmptyInterface {}
    public interface IInterface { void m();}
  EOL
  it "map to modules" do
    [IEmptyInterface, IInterface].each do |iface|
      iface.should be_kind_of Module
    end
  end
end
<commit_msg>closing Rubyforge [#15061] tracking: create generic interface type<commit_after>require File.dirname(__FILE__) + '/../spec_helper'

describe "Interfaces" do
  csc <<-EOL
    public interface IEmptyInterface {}
    public interface IInterface { void m();}
  EOL
  it "map to modules" do
    [IEmptyInterface, IInterface].each do |iface|
      iface.should be_kind_of Module
      iface.should_not be_kind_of Class
    end
  end

  it "map to modules when a concrete instance of a generic interface" do
    System::IEquatable.of(Fixnum).should be_kind_of Module
    System::IEquatable.of(Fixnum).should_not be_kind_of Class
  end
end

{'fraction_non_alphanumeric': 0.08969072164948454, 'fraction_numerical': 0.005154639175257732, 'mean_word_length': 3.7832512315270934, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6125806', 'n_tokens_mistral': 310, 'n_tokens_neox': 302, 'n_words': 94}