Debian Codegraph @

test/ofmta.awk

raw
1 # Date: Thu, 14 Apr 2011 08:18:55 -0500
2 # From: [email protected]
3 # To: [email protected]
4 # Subject: CONVFMT test for the test suite
5 # Message-ID: <20110414131855.GA1801@apollo>
6 #
7 # Hi,
8 #
9 # Please consider adding this to the test suite. 3.1.8 segfaults
10 # with this.
11 #
12 # Thanks,
13 #
14 # John
15 #
16 #
17 BEGIN {
18 i=1.2345
19 i=3+i
20 a[i]="hi"
21 OFMT="%.1f"
22 print i
23 for (x in a) print x, a[x]
24 print a[i]
25 print "--------"
26 CONVFMT=OFMT="%.3f"
27 print i
28 for (x in a) print x, a[x]
29 print a[i]
30 }