aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-03-21 05:36:33 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-03-21 05:36:33 +0200
commit3e92d06bebd53eba773749351641e3eaed7c117f (patch)
tree73a25fc10c399656589daa3ab7f0f81c483139b7 /test
parentdd0cfe0cb3138755733c6578366cebc239e7017d (diff)
downloadegawk-3e92d06bebd53eba773749351641e3eaed7c117f.tar.gz
egawk-3e92d06bebd53eba773749351641e3eaed7c117f.tar.bz2
egawk-3e92d06bebd53eba773749351641e3eaed7c117f.zip
Improve pretty-printing comment after if statement.
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog4
-rw-r--r--test/profile10.awk3
-rw-r--r--test/profile10.ok3
-rw-r--r--test/profile5.ok6
4 files changed, 14 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index edacd493..c5536f01 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,7 @@
+2016-03-21 Arnold D. Robbins <arnold@skeeve.com>
+
+ * profile5.ok, profile10.awk, profile10.ok: Adjust after code changes.
+
2016-03-19 Arnold D. Robbins <arnold@skeeve.com>
* profile5.ok: Adjust after code changes.
diff --git a/test/profile10.awk b/test/profile10.awk
index 3bb2947d..b78ae447 100644
--- a/test/profile10.awk
+++ b/test/profile10.awk
@@ -34,6 +34,9 @@ BEGIN { # Comment 0
print "foo"
} # Comment 25
+ if (2) {
+ print "bar"
+ }
# Comment 26
}
# Comment 27
diff --git a/test/profile10.ok b/test/profile10.ok
index 9d4840c2..13f0b67b 100644
--- a/test/profile10.ok
+++ b/test/profile10.ok
@@ -31,6 +31,9 @@ BEGIN { # Comment 0
if (1) {
print "foo"
} # Comment 25
+ if (2) {
+ print "bar"
+ }
# Comment 26
}
diff --git a/test/profile5.ok b/test/profile5.ok
index 602702cf..1ffaf438 100644
--- a/test/profile5.ok
+++ b/test/profile5.ok
@@ -3146,7 +3146,8 @@ function _getchrln(s, w)
#################################################
if (s == "") {
return
- } #if ( w!=w+0 || w<0 ) w=_CON_WIDTH
+ }
+ #if ( w!=w+0 || w<0 ) w=_CON_WIDTH
if (length(s) < w) {
if (s in _GETCHRLN) {
if (length(_getchrlnt0 = _GETCHRLN[s]) >= w) {
@@ -5237,7 +5238,8 @@ function _setmpath(p, a)
if (p && (a = _filerd(p))) {
if (_FILEIO_TMPRD) {
_FILEIO_TMPATHS[_FILEIO_TMPRD]
- } #if ( _filexist(a) ) _del(a)
+ }
+ #if ( _filexist(a) ) _del(a)
#_cmd("rd " a " /S /Q 2>NUL"); _cmd("del " a " /Q 2>NUL")
return (_FILEIO_TMPRD = a)
} else {