"""Tests for pattern detection algorithms.""" from shellhist.core import HistoryEntry, HistoryStore from shellhist.core.patterns import ( ngram_analysis, detect_repetitive_commands, detect_command_pairs, detect_command_triplets, detect_common_sequences, )