<commit_before>#!/usr/bin/env roundup
#
# Test the functionality of the doto CLI.
# --------
# 
# Every test function starts with "it_".

# `describe` the plan meaningfully.
describe "Test the functionality of the doto CLI."

export DOTO_CONFIG=./test/configs/dotorc.1

# Add a new task
it_runs_add() {
    doto add "title" "description"
}

it_runs_addi_with_due() {
    doto add "title" "description" --due 2013.10.15-20:15
}

it_runs_add_with_difficulty() {
    doto add "title" "description" --difficulty 0
    doto add "title" "description" --difficulty 1
    doto add "title" "description" --difficulty 2
    doto add "title" "description" --difficulty 3
    doto add "title" "description" --difficulty 4
}

it_fails_with_wrong_difficulty() {
    test 2 -eq $(doto add "title" "description" --difficulty 5; echo $?)
    test 2 -eq $(doto add "title" "description" --difficulty 1235; echo $?)
    test 2 -eq $(doto add "title" "description" --difficulty -1; echo $?)
}

# List all open tasks
it_runs_ls() {
    doto ls
}

it_runs_ls_all() {
    doto ls --all
}

it_runs_ls_with_config() {
    DOTO_CONFIG=test/config/dotorc.1 doto ls 
}
<commit_msg>removed the test for DOTO_CONF<commit_after>#!/usr/bin/env roundup
#
# Test the functionality of the doto CLI.
# --------
# 
# Every test function starts with "it_".

# `describe` the plan meaningfully.
describe "Test the functionality of the doto CLI."

export DOTO_CONFIG=./test/configs/dotorc.1

# Add a new task
it_runs_add() {
    doto add "title" "description"
}

it_runs_addi_with_due() {
    doto add "title" "description" --due 2013.10.15-20:15
}

it_runs_add_with_difficulty() {
    doto add "title" "description" --difficulty 0
    doto add "title" "description" --difficulty 1
    doto add "title" "description" --difficulty 2
    doto add "title" "description" --difficulty 3
    doto add "title" "description" --difficulty 4
}

it_fails_with_wrong_difficulty() {
    test 2 -eq $(doto add "title" "description" --difficulty 5; echo $?)
    test 2 -eq $(doto add "title" "description" --difficulty 1235; echo $?)
    test 2 -eq $(doto add "title" "description" --difficulty -1; echo $?)
}

# List all open tasks
it_runs_ls() {
    doto ls
}

it_runs_ls_all() {
    doto ls --all
}

{'fraction_non_alphanumeric': 0.13707165109034267, 'fraction_numerical': 0.024477080551846907, 'mean_word_length': 3.390625, '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': '3061417', 'n_tokens_mistral': 897, 'n_tokens_neox': 811, 'n_words': 244}