<commit_before>package org.oblodiff.subject.text.simple;

import org.oblodiff.subject.text.linebased.Line;
import org.oblodiff.subject.text.Character;
import org.oblodiff.subject.text.linebased.Document;
import org.junit.Test;

import static org.assertj.core.api.Assertions.assertThat;

public class Test_Document_getChildren {
  @Test
  public void should_Be_Empty_If_Document_Is_Empty() {
    assertThat(new org.oblodiff.subject.text.linebased.Document("").getChildren()).isEmpty();
  }

  @Test
  public void should_Return_One_Child_If_Consists_Of_One_CarriageReturn() {
    assertThat(new org.oblodiff.subject.text.linebased.Document("\r").getChildren()).containsExactly(new Character('\r'));
  }

  @Test
  public void should_Return_One_Child_If_Consists_Of_One_LineFeed() {
    assertThat(new org.oblodiff.subject.text.linebased.Document("\n").getChildren()).containsExactly(new Character('\n'));
  }

  @Test
  public void should_Return_One_Child_If_Consists_Of_One_Line() {
    assertThat(new org.oblodiff.subject.text.linebased.Document("super").getChildren()).containsExactly(new Line("super"));
  }

  @Test
  public void should_Add_NewLine_As_Character() {
    assertThat(new org.oblodiff.subject.text.linebased.Document("super\n").getChildren()).containsExactly(new Line("super"), new Character('\n'));
  }

  @Test
  public void should_Add_CarriageReturn_As_Character() {
    assertThat(new org.oblodiff.subject.text.linebased.Document("super\r").getChildren()).containsExactly(new Line("super"), new Character('\r'));
  }

  @Test
  public void should_Add_CarriageReturn_LineFeed_As_Characters() {
    assertThat(new Document("one\r\nis").getChildren()).containsExactly(new Line("one"), new Character('\r'), new
        Character('\n'), new Line("is"));
  }
}<commit_msg>Remove unnecessary FQN.<commit_after>package org.oblodiff.subject.text.simple;

import org.oblodiff.subject.text.linebased.Line;
import org.oblodiff.subject.text.Character;
import org.oblodiff.subject.text.linebased.Document;
import org.junit.Test;

import static org.assertj.core.api.Assertions.assertThat;

public class Test_Document_getChildren {
  @Test
  public void should_Be_Empty_If_Document_Is_Empty() {
    assertThat(new Document("").getChildren()).isEmpty();
  }

  @Test
  public void should_Return_One_Child_If_Consists_Of_One_CarriageReturn() {
    assertThat(new Document("\r").getChildren()).containsExactly(new Character('\r'));
  }

  @Test
  public void should_Return_One_Child_If_Consists_Of_One_LineFeed() {
    assertThat(new Document("\n").getChildren()).containsExactly(new Character('\n'));
  }

  @Test
  public void should_Return_One_Child_If_Consists_Of_One_Line() {
    assertThat(new Document("super").getChildren()).containsExactly(new Line("super"));
  }

  @Test
  public void should_Add_NewLine_As_Character() {
    assertThat(new Document("super\n").getChildren()).containsExactly(new Line("super"), new Character('\n'));
  }

  @Test
  public void should_Add_CarriageReturn_As_Character() {
    assertThat(new Document("super\r").getChildren()).containsExactly(new Line("super"), new Character('\r'));
  }

  @Test
  public void should_Add_CarriageReturn_LineFeed_As_Characters() {
    assertThat(new Document("one\r\nis").getChildren()).containsExactly(new Line("one"), new Character('\r'), new
        Character('\n'), new Line("is"));
  }
}
{'fraction_non_alphanumeric': 0.14171122994652408, 'fraction_numerical': 0.0, 'mean_word_length': 5.899590163934426, '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': '2146608', 'n_tokens_mistral': 1071, 'n_tokens_neox': 1057, 'n_words': 150}