From 7b9206498ee8d5f6327da84e72c00bbc6ff1cf48 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 31 Aug 2024 15:17:11 -0400 Subject: test boundary conditions --- test | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 test (limited to 'test') diff --git a/test b/test new file mode 100755 index 0000000..972ba8c --- /dev/null +++ b/test @@ -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 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 -- cgit v1.2.3