<commit_before>require File.join(File.dirname(__FILE__), 'helper')
require File.join(File.dirname(__FILE__), '..', 'lib', 'true_unit', 'compatibility', 'test_unit')

class TestTrueUnit < Test::Unit::TestCase
  # declare fixtures
  class User
    def do_something
      @did_something = true
    end
    def did_something?
      @did_something
    end
    def did_something_else?
      @did_something_else
    end
  end
  class Blog
  end
  register_fixture :a_basic_user do
    User.new
  end
  register_fixture :a_basic_blog do
    Blog.new
  end

  #write tests
  with a_basic_user.a_basic_blog do
    setup '@a_basic_user.do_something' do
      @a_basic_user.do_something
    end
    should 'have did_something?' do
      @a_basic_user.did_something?
    end
    should_not 'have did_something_else?' do
      @a_basic_user.did_something_else?
    end
  end
end<commit_msg>add test for not yet implemented assertion<commit_after>require File.join(File.dirname(__FILE__), 'helper')
require File.join(File.dirname(__FILE__), '..', 'lib', 'true_unit', 'compatibility', 'test_unit')

class TestTrueUnit < Test::Unit::TestCase
  # declare fixtures
  class User
    def do_something
      @did_something = true
    end
    def did_something?
      @did_something
    end
    def did_something_else?
      @did_something_else
    end
  end
  class Blog
  end
  register_fixture :a_basic_user do
    User.new
  end
  register_fixture :a_basic_blog do
    Blog.new
  end

  #write tests
  with a_basic_user.a_basic_blog do
    setup '@a_basic_user.do_something' do
      @a_basic_user.do_something
    end
    should 'have did_something?' do
      @a_basic_user.did_something?
    end
    should_not 'have did_something_else?' do
      @a_basic_user.did_something_else?
    end
    should 'have done some other stuff, but not yet implemented'
  end
end
{'fraction_non_alphanumeric': 0.07854821235102925, 'fraction_numerical': 0.0, 'mean_word_length': 3.3664302600472813, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5073616', 'n_tokens_mistral': 617, 'n_tokens_neox': 611, 'n_words': 149}