From 7c8ce5f32feb970f1842e6859a8c74f6cb86cfe8 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 29 Jun 2025 12:17:26 -0400 Subject: Add bats tests --- tests/justify.bats | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 tests/justify.bats (limited to 'tests/justify.bats') diff --git a/tests/justify.bats b/tests/justify.bats new file mode 100644 index 0000000..6fac7ef --- /dev/null +++ b/tests/justify.bats @@ -0,0 +1,77 @@ +#!/usr/bin/env bats + +load 'vendor/bats-support/load' +load 'vendor/bats-assert/load' +load 'vendor/bats-file/load' + +JUSTIFY_BIN="./build/justify" + +@test "last line of the output is left aligned" { + run "${JUSTIFY_BIN}" <