<commit_before>#!/bin/sh
# vim:ft=sh:

. $(dirname $0)/../bshtap

# These tests ensure that Invalid invoking will fail.

echo 1..12
exec 3>&1 1>&2

echo3 () {
	echo "$@" >&3
}

( ok ) && echo3 -n "not "
echo3 ok - ok without arguments

(cmp_ok) && echo3 -n "not "
echo3 ok - cmp_ok without arguments

(cmp_ok true) && echo3 -n "not "
echo3 ok - cmp_ok without expected operator

(cmp_ok true -eq) && echo3 -n "not "
echo3 ok - cmp_ok without expected result

(is) && echo3 -n "not "
echo3 ok - is without arguments

(is "echo foo") && echo3 -n "not "
echo3 ok - is without expected result

(isnt) && echo3 -n "not "
echo3 ok - isnt without arguments

(isnt "echo foo") && echo3 -n "not "
echo3 ok - isnt without expected result

(like) && echo3 -n "not "
echo3 ok - like without arguments

(like "echo foo") && echo3 -n "not "
echo3 ok - like without regex

(unlike) && echo3 -n "not "
echo3 ok - unlike without arguments

(unlike "echo foo") && echo3 -n "not "
echo3 ok - unlike without regex<commit_msg>t/fail.t: Drop echo and modify to use printf instead<commit_after>#!/bin/sh
# vim:ft=sh:

. $(dirname $0)/../bshtap

# These tests ensure that Invalid invoking will fail.

printf "1..12\n"
exec 3>&1 1>&2

printf3 () {
	printf "$@" >&3
}

( ok ) && printf3 "not "
printf3 "ok - ok without arguments\n"

(cmp_ok) && printf3 "not "
printf3 "ok - cmp_ok without arguments\n"

(cmp_ok true) && printf3 "not "
printf3 "ok - cmp_ok without expected operator\n"

(cmp_ok true -eq) && printf3 "not "
printf3 "ok - cmp_ok without expected result\n"

(is) && printf3 "not "
printf3 "ok - is without arguments\n"

(is "printf 'foo\n'") && printf3 "not "
printf3 "ok - is without expected result\n"

(isnt) && printf3 "not "
printf3 "ok - isnt without arguments\n"

(isnt "printf 'foo\n'") && printf3 "not "
printf3 "ok - isnt without expected result\n"

(like) && printf3 "not "
printf3 "ok - like without arguments\n"

(like "printf 'foo\n'") && printf3 "not "
printf3 "ok - like without regex\n"

(unlike) && printf3 "not "
printf3 "ok - unlike without arguments\n"

(unlike "printf 'foo\n'") && printf3 "not "
printf3 "ok - unlike without regex\n"
{'fraction_non_alphanumeric': 0.15305646290247316, 'fraction_numerical': 0.03173121791880541, 'mean_word_length': 3.4481327800829877, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6280955', 'n_tokens_mistral': 809, 'n_tokens_neox': 795, 'n_words': 281}