<commit_before>require 'teststrap'

context "A kind_of assertion macro" do
  setup { Riot::Situation.new }

  asserts ":pass when specific result is a kind of String" do
    Riot::Assertion.new("foo") { "a" }.kind_of(String).run(topic)
  end.equals([:pass])

  asserts ":fail when not a kind of String" do
    Riot::Assertion.new("foo") { 0 }.kind_of(String).run(topic)
  end.equals([:fail, %Q{expected kind of String, not 0}])
end # A kind_of assertion macro<commit_msg>added_nil_test<commit_after>require 'teststrap'

context "A kind_of assertion macro" do
  setup { Riot::Situation.new }

  asserts ":pass when specific result is a kind of String" do
    Riot::Assertion.new("foo") { "a" }.kind_of(String).run(topic)
  end.equals([:pass])

  asserts ":fail when not a kind of String" do
    Riot::Assertion.new("foo") { 0 }.kind_of(String).run(topic)
  end.equals([:fail, %Q{expected kind of String, not 0}])
  
  asserts ":fail when nil" do
    Riot::Assertion.new("foo") { }.kind_of(String).run(topic)
  end.equals([:fail, %Q{expected kind of String, not nil}])
end # A kind_of assertion macro
{'fraction_non_alphanumeric': 0.15027322404371585, 'fraction_numerical': 0.0036429872495446266, 'mean_word_length': 4.5786802030456855, 'pattern_counts': {'":': 5, '<': 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': '2633433', 'n_tokens_mistral': 397, 'n_tokens_neox': 382, 'n_words': 111}