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

load test_helper

@test "on: mk empty env & activate it" {
    run mem rm --all
    [ "$status" -eq 0 ]
    run mem mk empty_env2
    [ "$status" -eq 0 ]
    [ "${lines[0]}"  = "Creating environment: empty_env2 ..." ]
    run mem ls
    [ "$status" -eq 0 ]
    [ "${lines[0]}"  = "Available environment(s):" ]
    [ "${lines[1]}"  = "empty_env2" ]
    mem on test_empty_env2
    [ "$status" -eq 0 ]
    [ "`echo $MEM_USED_ENV`" = "test_empty_env2" ]
}<commit_msg>added tests for 'activate' commands<commit_after>#!/usr/bin/env bats

load test_helper

@test "on: mk empty env & activate it" {
    run mem rm --all
    [ "$status" -eq 0 ]
    run mem mk empty_env2
    [ "$status" -eq 0 ]
    [ "${lines[0]}"  = "Creating environment: empty_env2 ..." ]
    run mem ls
    [ "$status" -eq 0 ]
    [ "${lines[0]}"  = "Available environment(s):" ]
    [ "${lines[1]}"  = "empty_env2" ]
    mem on test_empty_env2
    [ "$status" -eq 0 ]
    [ "`echo $MEM_USED_ENV`" = "test_empty_env2" ]
}

@test "activate: mk empty env & activate it" {
    run mem rm --all
    [ "$status" -eq 0 ]
    run mem mk empty_env2
    [ "$status" -eq 0 ]
    [ "${lines[0]}"  = "Creating environment: empty_env2 ..." ]
    run mem ls
    [ "$status" -eq 0 ]
    [ "${lines[0]}"  = "Available environment(s):" ]
    [ "${lines[1]}"  = "empty_env2" ]
    mem activate test_empty_env2
    [ "$status" -eq 0 ]
    [ "`echo $MEM_USED_ENV`" = "test_empty_env2" ]
}
{'fraction_non_alphanumeric': 0.18813905930470348, 'fraction_numerical': 0.024539877300613498, 'mean_word_length': 2.589242053789731, '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': '3251898', 'n_tokens_mistral': 586, 'n_tokens_neox': 556, 'n_words': 147}