Commit 8c77f576 authored by isaacs's avatar isaacs

anonymous subtests should be nameless, not named 'anonymous'

This is a breaking change because it would break tap's output validation
test suite.  Goes in concert with the tap v11 move away from
'Subtest: (unnamed test)' towards having unnamed things actually be
unnamed.
parent b5a133d5
......@@ -616,7 +616,7 @@ class Parser extends MiniPass {
} else if (maybeBuffered) {
subtestComment = '# Subtest: ' + this.current.name + '\n'
} else {
subtestComment = this.maybeChild || '# Subtest: (anonymous)\n'
subtestComment = this.maybeChild || '# Subtest\n'
}
this.maybeChild = null
......
[
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -116,14 +116,14 @@
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -258,7 +258,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -278,7 +278,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -364,11 +364,11 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -388,7 +388,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......
[
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -116,14 +116,14 @@
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -258,7 +258,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -278,7 +278,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -364,11 +364,11 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -388,7 +388,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......
......@@ -9,36 +9,36 @@
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -124,14 +124,14 @@
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -266,7 +266,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -286,7 +286,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -372,11 +372,11 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -396,7 +396,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......
......@@ -9,36 +9,36 @@
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -124,14 +124,14 @@
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -266,7 +266,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -286,7 +286,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -372,11 +372,11 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -396,7 +396,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......
[
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -116,14 +116,14 @@
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -258,7 +258,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -278,7 +278,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -364,11 +364,11 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -388,7 +388,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......
[
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -116,14 +116,14 @@
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -258,7 +258,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -278,7 +278,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -364,11 +364,11 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -388,7 +388,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......
......@@ -9,36 +9,36 @@
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -124,14 +124,14 @@
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
......@@ -266,7 +266,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -286,7 +286,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -372,11 +372,11 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......@@ -396,7 +396,7 @@
],
[
"line",
" # Subtest: (anonymous)\n"
" # Subtest\n"
],
[
"line",
......
......@@ -12,25 +12,25 @@
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"child",
[
[
"comment",
"# Subtest: (anonymous)\n"
"# Subtest\n"
],
[
"line",
"# Subtest: (anonymous)\n"
"# Subtest\n"