diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-08-31 15:17:11 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-08-31 15:28:19 -0400 |
| commit | 7b9206498ee8d5f6327da84e72c00bbc6ff1cf48 (patch) | |
| tree | ee3c5048653d25b222914e285d75e1d513498bbf /test | |
| parent | 5ec152ecd424d67474f36992acae5c620e46e2c6 (diff) | |
| download | markov-7b9206498ee8d5f6327da84e72c00bbc6ff1cf48.zip | |
test boundary conditions
Diffstat (limited to 'test')
| -rwxr-xr-x | test | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#!/usr/bin/sh + +# Check boundary conditions with small files. Output should match input. +for f in empty a ab abc abcd; do + ./markov <tests/$f > out + if !(diff tests/$f out > /dev/null); then + echo tests/$f: output of markov does not match input: + diff tests/$f out + exit 1 + fi +done +rm out
\ No newline at end of file |