xref: /freebsd/contrib/bmake/unit-tests/varmod-to-lower.mk (revision 1603881667360c015f6685131f2f25474fa67a72)
1# $NetBSD: varmod-to-lower.mk,v 1.5 2020/11/15 20:20:58 rillig Exp $
2#
3# Tests for the :tl variable modifier, which returns the words in the
4# variable value, converted to lowercase.
5#
6# TODO: What about non-ASCII characters? ISO-8859-1, UTF-8?
7
8.if ${:UUPPER:tl} != "upper"
9.  error
10.endif
11
12.if ${:Ulower:tl} != "lower"
13.  error
14.endif
15
16.if ${:UMixeD case.:tl} != "mixed case."
17.  error
18.endif
19
20all:
21	@:;
22