<commit_before>$IS_FRAMEWORK_IMPORTED: false;
$IS_TEST: true;

@import "true";
@import "framework";

@include describe('Framework') {

  @include it('is successfully imported') {
    @include assert-true($IS_FRAMEWORK_IMPORTED);
  }

  @include it('can throw a test error in a mixin') {
    @include assert {
      @include output {
        @include error("Explode.")
      } @include expect {
        ERROR: "Explode.";
      }
    }
  }

  @include it('can throw a test error in a function') {
    @include assert {
      @include output {
        test: error("Explode.");
      } @include expect {
        test: "ERROR: Explode.";
      }
    }
  }

  @include it('provides the NULLABLE and NOT_NULL ValueSet enums') {
    @include assert-equal(
      enum('ValueSet::NULLABLE'),
      'ENUM__ValueSet::NULLABLE'
    );
    @include assert-equal(
      enum('ValueSet::NOT_NULL'),
      'ENUM__ValueSet::NOT_NULL'
    );
  }
  
}


@include describe('Enums') {

  @include it('allows enum creation') {
    @include create_enum_type('Test',
        'TEST',
        'ENUM'
    );
    @include assert-equal(
      'ENUM__Test::TEST',
      enum('Test::TEST')
    );
    @include assert-equal(
      'ENUM__Test::ENUM',
      enum('Test::ENUM')
    );
  }

  @include it('errors when getting a non-existant enum') {<commit_msg>Add failing null function test<commit_after>$IS_FRAMEWORK_IMPORTED: false;
$IS_TEST: true;

@import "true";
@import "framework";

@include describe('Framework') {

  @include it('is successfully imported') {
    @include assert-true($IS_FRAMEWORK_IMPORTED);
  }

  @include it('provides a null() function') {
    @include assert-equal(
      null(),
      null
    );
  }

  @include it('can throw a test error in a mixin') {
    @include assert {
      @include output {
        @include error("Explode.")
      } @include expect {
        ERROR: "Explode.";
      }
    }
  }

  @include it('can throw a test error in a function') {
    @include assert {
      @include output {
        test: error("Explode.");
      } @include expect {
        test: "ERROR: Explode.";
      }
    }
  }

  @include it('provides the NULLABLE and NOT_NULL ValueSet enums') {
    @include assert-equal(
      enum('ValueSet::NULLABLE'),
      'ENUM__ValueSet::NULLABLE'
    );
    @include assert-equal(
      enum('ValueSet::NOT_NULL'),
      'ENUM__ValueSet::NOT_NULL'
    );
  }

}


@include describe('Enums') {

  @include it('allows enum creation') {
    @include create_enum_type('Test',
        'TEST',
        'ENUM'
    );
    @include assert-equal(
      'ENUM__Test::TEST',
      enum('Test::TEST')
    );
    @include assert-equal(
      'ENUM__Test::ENUM',
      enum('Test::ENUM')
    );
  }

  @include it('errors when getting a non-existant enum') {
{'fraction_non_alphanumeric': 0.14728123874684912, 'fraction_numerical': 0.0, 'mean_word_length': 2.621903520208605, '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': '103114', 'n_tokens_mistral': 898, 'n_tokens_neox': 894, 'n_words': 205}