<commit_before>use v6;
use lib <blib/lib lib>;
use Test::Screen;
use Test;
plan 1;
$test-screen-shell = [$*EXECUTABLE,
                      $*SPEC.catdir($*PROGRAM-NAME.IO.dirname, "args.t"),
                      "arg1", "arg2"];
start-screens;
sleep 4; # TODO ipc to speed this up.
row-matches 0, "arg1 arg2", 'single $test-screen-shell, start-screens and row-matches work.';<commit_msg>Make Test::Screen fake a good result when screen is not installed<commit_after>use v6;
use lib <blib/lib lib>;
use Test::Screen;
use Test;

if run "screen", "-ls", :out {
  plan 1;
}
else {
  plan 1;
  ok 1, "Skipping tests since 'screen' not installed or not in path";
  exit;
}

$test-screen-shell = [$*EXECUTABLE,
                      $*SPEC.catdir($*PROGRAM-NAME.IO.dirname, "args.t"),
                      "arg1", "arg2"];
start-screens;
sleep 4; # TODO ipc to speed this up.
row-matches 0, "arg1 arg2", 'single $test-screen-shell, start-screens and row-matches work.';
{'fraction_non_alphanumeric': 0.15320910973084886, 'fraction_numerical': 0.018633540372670808, 'mean_word_length': 2.9794238683127574, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '841298', 'n_tokens_mistral': 352, 'n_tokens_neox': 333, 'n_words': 104}