<commit_before>@import "util/unit";

@include describe("Strip Unit") {
  @include it("strips the unit from a number") {
    $actual: strip-unit(20px);
    $expected: 20;

    @include should(expect($actual), to(be($expected)));
  }
  @include it("returns the same number when given a unitless value") {
    $actual: strip-unit(20);
    $expected: 20;

    @include should(expect($actual), to(be($expected)));
  }
}

@include describe("Convert to Rem") {
  @include it("converts a unit to the equivalent in rems") {
    $actual: -zf-to-rem(32, 16);
    $expected: 2rem;

    @include should(expect($actual), to(be($expected)));
  }
}

@include describe("Rem Calculator") {
  @include it("converts an arbitrary number of values into rem equivalents") {
    $actual: rem-calc((8 16 32 64), 16);
    $expected: 0.5rem 1rem 2rem 4rem;

    @include should(expect($actual), to(be($expected)));
  }
}<commit_msg>added tests for rem values in rem-calc<commit_after>@import "util/unit";

@include describe("Strip Unit") {
  @include it("strips the unit from a number") {
    $actual: strip-unit(20px);
    $expected: 20;

    @include should(expect($actual), to(be($expected)));
  }
  @include it("returns the same number when given a unitless value") {
    $actual: strip-unit(20);
    $expected: 20;

    @include should(expect($actual), to(be($expected)));
  }
}

@include describe("Convert to Rem") {
  @include it("converts a unit to the equivalent in rems") {
    $actual: -zf-to-rem(32, 16);
    $expected: 2rem;

    @include should(expect($actual), to(be($expected)));
  }
}

@include describe("Convert Rem to Rem") {
  @include it("keeps rem values the same") {
    $actual: -zf-to-rem(3rem, 16);
    $expected: 3rem;

    @include should(expect($actual), to(be($expected)));
  }
}

@include describe("Rem Calculator") {
  @include it("converts an arbitrary number of values into rem equivalents") {
    $actual: rem-calc((8 16 32 64), 16);
    $expected: 0.5rem 1rem 2rem 4rem;

    @include should(expect($actual), to(be($expected)));
  }
}
{'fraction_non_alphanumeric': 0.16837983357807146, 'fraction_numerical': 0.028389623103279492, 'mean_word_length': 4.0594059405940595, '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': '5484115', 'n_tokens_mistral': 724, 'n_tokens_neox': 666, 'n_words': 193}