<commit_before>#!/usr/bin/env bats

load commons

@test "print available commands when run 'git-elegant commands'" {
  run git-elegant commands
  [[ "${lines[0]}" =~ "feature" ]]
  [[ "${lines[1]}" =~ "pull" ]]
  [[ "${lines[2]}" =~ "push" ]]
  [[ "${lines[3]}" =~ "push-after-rebase" ]]
  [[ "${lines[4]}" =~ "rebase" ]]
  [[ "${lines[5]}" =~ "init" ]]
  [[ "${lines[6]}" =~ "clone" ]]
  [[ "${lines[7]}" =~ "add" ]]
  [[ "${lines[8]}" =~ "clear-local" ]]
  [[ "${lines[9]}" =~ "configure" ]]
  [ ${#lines[@]} -eq 10 ]
}


@test "exit code is 10 when run 'git-elegant'" {
  run git-elegant<commit_msg>Update unit tests for 'git-elegant commands'<commit_after>#!/usr/bin/env bats

load commons

@test "print available commands when run 'git-elegant commands'" {
  run git-elegant commands
  [[ "${lines[0]}" =~ "feature" ]]
  [[ "${lines[1]}" =~ "pull" ]]
  [[ "${lines[2]}" =~ "push" ]]
  [[ "${lines[3]}" =~ "push-after-rebase" ]]
  [[ "${lines[4]}" =~ "rebase" ]]
  [[ "${lines[5]}" =~ "init" ]]
  [[ "${lines[6]}" =~ "clone" ]]
  [[ "${lines[7]}" =~ "add" ]]
  [[ "${lines[8]}" =~ "clear-local" ]]
  [[ "${lines[9]}" =~ "configure" ]]
  [[ "${lines[10]}" =~ "check" ]]
  [ ${#lines[@]} -eq 11 ]
}


@test "exit code is 10 when run 'git-elegant'" {
  run git-elegant
{'fraction_non_alphanumeric': 0.31048069345941687, 'fraction_numerical': 0.02364066193853428, 'mean_word_length': 3.8846153846153846, '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': '5906734', 'n_tokens_mistral': 559, 'n_tokens_neox': 543, 'n_words': 102}