modifiers.should 481 Bytes
Newer Older
1

2
LC_ALL=C cal 2001
3

4
# Here tests with `w` count all occurrences, even when they are on the same line.
5

6 7
$ 7 months have 31 days
w7: 31
8

9 10 11 12
# Uppercase modifiers cancel previous modifiers

$ 5 lines have a '31' day
wW5: 31
13

14 15 16 17 18

# Modifiers given through the command line or through !OPTIONS apply to every test.

!OPTIONS: --mod w
LC_ALL=C cal 2001
19 20 21 22 23 24 25

$ 7 months have 31 days
7: 31

$ 11 months have 30 days or more
11: 30

26 27
$ 7 months have a '31' day (W is here overriden by --mod w)
W7: 31