printf_test.ksh revision 598f4ceed9327d2d6c2325dd67cae3aa06f7fea6
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amore# This file and its contents are supplied under the terms of the
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amore# You may only use this file in accordance with the terms of version
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amore# 1.0 of the CDDL.
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amore# A full copy of the text of the CDDL should have accompanied this
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amore# source. A copy of the CDDL is also available via the Internet at
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org>
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amore if [[ $? -ne 0 ]]; then
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amore test_fail $1 "compare mismatch, got [$2] expected [$3]"
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amoretests[04][desc]="variable position parameters"
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amoretests[07][desc]="variable width and precision"
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amoretests[08][desc]="variable position width and precision"
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amoretests[09][desc]="multi variable position width and precision"
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amoretests[18][format]='HI\1120K\0112tabbed\11again'
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amoretests[20][desc]="numeric %d and ASCII conversions"
598f4ceed9327d2d6c2325dd67cae3aa06f7fea6Garrett D'Amore [[ -n "$debug" ]] && echo $PRINTF "$format" "${args[@]}"