logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: 079309fce19409d8efd1ca0b9548fa1f1024e888
parent 46ec041c11acdc8a5bdac738685a45e84941cfc0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  3 Sep 2024 21:47:12 +0200

test-cmd/printf.sh: new

Diffstat:

Atest-cmd/printf.sh17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/test-cmd/printf.sh b/test-cmd/printf.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me> +# SPDX-License-Identifier: MPL-2.0 + +target="$(dirname "$0")/../cmd/printf" +plans=4 +. "$(dirname "$0")/tap.sh" + +t esc '\b\t\n' ' +' + +t octal '\041' '!' +t hex '\x7B\x7d' '{}' + +t repeat_fmt '%s\n foo bar' 'foo +bar +'