<commit_before>part of tests;

@dart
preconditions() {
  
  group("checkThat()", () {
    test("throws error on invalid condition", () {
      expect(() => checkThat(3, lessThan(2)), throwsA(new isInstanceOf<PreconditionError>()));
    });
    
    test("executes normally on valid condition", () {
      expect(() => checkThat(3, greaterThan(2)), returnsNormally);
    });
    
    test("returns checked value on valid condition", (){
      expect(checkThat("a string", new isInstanceOf<String>()), "a string");
    });
    
    //TODO Find a better way to test custom error messages  
    test("throws error with custom message", () {
      String customMessage = "Must be over 9000!";
      expect(() => checkThat(9000, greaterThan(9000), customMessage),
          throwsA(predicate((PreconditionError e) => e.message == customMessage)));
    });
  });
}<commit_msg>Cleaned up some test output verbiage<commit_after>part of tests;

@dart
preconditions() {
  
  group("checkThat()", () {
    test("throws an error on an invalid condition", () {
      expect(() => checkThat(3, lessThan(2)), throwsA(new isInstanceOf<PreconditionError>()));
    });
    
    test("executes normally on a valid condition", () {
      expect(() => checkThat(3, greaterThan(2)), returnsNormally);
    });
    
    test("returns the checked value on a valid condition", (){
      expect(checkThat("a string", new isInstanceOf<String>()), "a string");
    });
    
    //TODO Find a better way to test custom error messages  
    test("throws an error with a specific custom message", () {
      String customMessage = "Must be over 9000!";
      expect(() => checkThat(9000, greaterThan(9000), customMessage),
          throwsA(predicate((PreconditionError e) => e.message == customMessage)));
    });
  });
}
{'fraction_non_alphanumeric': 0.15651201788708777, 'fraction_numerical': 0.017887087758524316, 'mean_word_length': 3.5202020202020203, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '7638032', 'n_tokens_mistral': 523, 'n_tokens_neox': 507, 'n_words': 145}