You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bd92c50
Browse filesBrowse the repository at this point in the historyBrowse files
{name: "a link to the spec", page: "[narrowing](https://github.com/ant-src/spec/blob/master/ant-lang.md#narrowing)\n", want: []string{"names the spec"}},
73
75
{name: "mistyped directives", page: "<!-- tests: exit 3 -->\n<!-- Test: exit 3 -->\n\n"+f+"ant\nprintln(1)\n"+f+"\n", want: []string{"p.md:3: a directive starts with test: exactly", "p.md:4: a directive starts"}},
{name: "env needs a name", page: "<!-- test: env BAD NAME -->\n<!-- test: env =x -->\n\n"+f+"ant\nprintln(1)\n"+f+"\n", want: []string{"test: env needs NAME or NAME=value, not \"BAD NAME\"", "not \"=x\""}},
76
78
{name: "env on a module", page: "<!-- test: env A=1 -->\n\n"+f+"ant [lib.ant]\nexport func f(): int { 1 }\n"+f+"\n", want: []string{"test: env does not apply"}},
77
79
{name: "body on the head line", page: "<!-- test: stdin hello -->\n\n"+f+"ant\nprintln(1)\n"+f+"\n", want: []string{"takes no argument"}},
78
80
{name: "duplicate directive", page: "<!-- test: before\nvar a = 1\n-->\n<!-- test: before\nvar b = 2\n-->\n\n"+f+"ant\nprintln(1)\n"+f+"\n", want: []string{"a second test: before"}},
0 commit comments