varmod-order-numeric.mk revision 1.1
1# $NetBSD: varmod-order-numeric.mk,v 1.1 2021/07/30 19:55:22 sjg Exp $ 2# 3# Tests for the :On variable modifier, which returns the words, sorted in 4# ascending numeric order. 5 6NUMBERS= 3 5 7 1 42 -42 1M 1k 7 8.if ${NUMBERS:On} != "-42 1 3 5 7 42 1k 1M" 9. error ${NUMBERS:On} 10.endif 11 12.if ${NUMBERS:Orn} != "1M 1k 42 7 5 3 1 -42" 13. error ${NUMBERS:Orn} 14.endif 15 16 17all: 18 @:; 19