2016-03-04 17:09:08 -08:00
|
|
|
|
// Copyright 2016 The Go Authors. All rights reserved.
|
|
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
|
|
package syntax
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
|
"fmt"
|
|
|
|
|
|
"os"
|
|
|
|
|
|
"testing"
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func TestScanner(t *testing.T) {
|
|
|
|
|
|
if testing.Short() {
|
|
|
|
|
|
t.Skip("skipping test in short mode")
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
src, err := os.Open("parser.go")
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
t.Fatal(err)
|
|
|
|
|
|
}
|
|
|
|
|
|
defer src.Close()
|
|
|
|
|
|
|
|
|
|
|
|
var s scanner
|
2016-11-30 23:28:40 -08:00
|
|
|
|
s.init("parser.go", src, nil, nil)
|
2016-03-04 17:09:08 -08:00
|
|
|
|
for {
|
|
|
|
|
|
s.next()
|
|
|
|
|
|
if s.tok == _EOF {
|
|
|
|
|
|
break
|
|
|
|
|
|
}
|
|
|
|
|
|
switch s.tok {
|
|
|
|
|
|
case _Name:
|
|
|
|
|
|
fmt.Println(s.line, s.tok, "=>", s.lit)
|
|
|
|
|
|
case _Operator:
|
|
|
|
|
|
fmt.Println(s.line, s.tok, "=>", s.op, s.prec)
|
|
|
|
|
|
default:
|
|
|
|
|
|
fmt.Println(s.line, s.tok)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func TestTokens(t *testing.T) {
|
|
|
|
|
|
// make source
|
|
|
|
|
|
var buf []byte
|
|
|
|
|
|
for i, s := range sampleTokens {
|
|
|
|
|
|
buf = append(buf, "\t\t\t\t"[:i&3]...) // leading indentation
|
|
|
|
|
|
buf = append(buf, s.src...) // token
|
|
|
|
|
|
buf = append(buf, " "[:i&7]...) // trailing spaces
|
|
|
|
|
|
buf = append(buf, "/* foo */ // bar\n"...) // comments
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// scan source
|
|
|
|
|
|
var got scanner
|
2016-11-30 23:28:40 -08:00
|
|
|
|
got.init("", &bytesReader{buf}, nil, nil)
|
2016-03-04 17:09:08 -08:00
|
|
|
|
got.next()
|
|
|
|
|
|
for i, want := range sampleTokens {
|
|
|
|
|
|
nlsemi := false
|
|
|
|
|
|
|
2016-11-29 16:13:09 -08:00
|
|
|
|
if got.line != uint(i+1) {
|
2016-03-04 17:09:08 -08:00
|
|
|
|
t.Errorf("got line %d; want %d", got.line, i+1)
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if got.tok != want.tok {
|
|
|
|
|
|
t.Errorf("got tok = %s; want %s", got.tok, want.tok)
|
|
|
|
|
|
continue
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
switch want.tok {
|
|
|
|
|
|
case _Name, _Literal:
|
|
|
|
|
|
if got.lit != want.src {
|
|
|
|
|
|
t.Errorf("got lit = %q; want %q", got.lit, want.src)
|
|
|
|
|
|
continue
|
|
|
|
|
|
}
|
|
|
|
|
|
nlsemi = true
|
|
|
|
|
|
|
|
|
|
|
|
case _Operator, _AssignOp, _IncOp:
|
|
|
|
|
|
if got.op != want.op {
|
|
|
|
|
|
t.Errorf("got op = %s; want %s", got.op, want.op)
|
|
|
|
|
|
continue
|
|
|
|
|
|
}
|
|
|
|
|
|
if got.prec != want.prec {
|
2016-08-25 13:42:49 -07:00
|
|
|
|
t.Errorf("got prec = %d; want %d", got.prec, want.prec)
|
2016-03-04 17:09:08 -08:00
|
|
|
|
continue
|
|
|
|
|
|
}
|
|
|
|
|
|
nlsemi = want.tok == _IncOp
|
|
|
|
|
|
|
|
|
|
|
|
case _Rparen, _Rbrack, _Rbrace, _Break, _Continue, _Fallthrough, _Return:
|
|
|
|
|
|
nlsemi = true
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if nlsemi {
|
|
|
|
|
|
got.next()
|
|
|
|
|
|
if got.tok != _Semi {
|
|
|
|
|
|
t.Errorf("got tok = %s; want ;", got.tok)
|
|
|
|
|
|
continue
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
got.next()
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if got.tok != _EOF {
|
|
|
|
|
|
t.Errorf("got %q; want _EOF", got.tok)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var sampleTokens = [...]struct {
|
|
|
|
|
|
tok token
|
|
|
|
|
|
src string
|
|
|
|
|
|
op Operator
|
|
|
|
|
|
prec int
|
|
|
|
|
|
}{
|
|
|
|
|
|
// name samples
|
|
|
|
|
|
{_Name, "x", 0, 0},
|
|
|
|
|
|
{_Name, "X123", 0, 0},
|
|
|
|
|
|
{_Name, "foo", 0, 0},
|
|
|
|
|
|
{_Name, "Foo123", 0, 0},
|
|
|
|
|
|
{_Name, "foo_bar", 0, 0},
|
|
|
|
|
|
{_Name, "_", 0, 0},
|
|
|
|
|
|
{_Name, "_foobar", 0, 0},
|
|
|
|
|
|
{_Name, "a۰۱۸", 0, 0},
|
|
|
|
|
|
{_Name, "foo६४", 0, 0},
|
|
|
|
|
|
{_Name, "bar9876", 0, 0},
|
|
|
|
|
|
{_Name, "ŝ", 0, 0},
|
|
|
|
|
|
{_Name, "ŝfoo", 0, 0},
|
|
|
|
|
|
|
|
|
|
|
|
// literal samples
|
|
|
|
|
|
{_Literal, "0", 0, 0},
|
|
|
|
|
|
{_Literal, "1", 0, 0},
|
|
|
|
|
|
{_Literal, "12345", 0, 0},
|
|
|
|
|
|
{_Literal, "123456789012345678890123456789012345678890", 0, 0},
|
|
|
|
|
|
{_Literal, "01234567", 0, 0},
|
|
|
|
|
|
{_Literal, "0x0", 0, 0},
|
|
|
|
|
|
{_Literal, "0xcafebabe", 0, 0},
|
|
|
|
|
|
{_Literal, "0.", 0, 0},
|
|
|
|
|
|
{_Literal, "0.e0", 0, 0},
|
|
|
|
|
|
{_Literal, "0.e-1", 0, 0},
|
|
|
|
|
|
{_Literal, "0.e+123", 0, 0},
|
|
|
|
|
|
{_Literal, ".0", 0, 0},
|
|
|
|
|
|
{_Literal, ".0E00", 0, 0},
|
|
|
|
|
|
{_Literal, ".0E-0123", 0, 0},
|
|
|
|
|
|
{_Literal, ".0E+12345678901234567890", 0, 0},
|
|
|
|
|
|
{_Literal, ".45e1", 0, 0},
|
|
|
|
|
|
{_Literal, "3.14159265", 0, 0},
|
|
|
|
|
|
{_Literal, "1e0", 0, 0},
|
|
|
|
|
|
{_Literal, "1e+100", 0, 0},
|
|
|
|
|
|
{_Literal, "1e-100", 0, 0},
|
|
|
|
|
|
{_Literal, "2.71828e-1000", 0, 0},
|
|
|
|
|
|
{_Literal, "0i", 0, 0},
|
|
|
|
|
|
{_Literal, "1i", 0, 0},
|
|
|
|
|
|
{_Literal, "012345678901234567889i", 0, 0},
|
|
|
|
|
|
{_Literal, "123456789012345678890i", 0, 0},
|
|
|
|
|
|
{_Literal, "0.i", 0, 0},
|
|
|
|
|
|
{_Literal, ".0i", 0, 0},
|
|
|
|
|
|
{_Literal, "3.14159265i", 0, 0},
|
|
|
|
|
|
{_Literal, "1e0i", 0, 0},
|
|
|
|
|
|
{_Literal, "1e+100i", 0, 0},
|
|
|
|
|
|
{_Literal, "1e-100i", 0, 0},
|
|
|
|
|
|
{_Literal, "2.71828e-1000i", 0, 0},
|
|
|
|
|
|
{_Literal, "'a'", 0, 0},
|
|
|
|
|
|
{_Literal, "'\\000'", 0, 0},
|
|
|
|
|
|
{_Literal, "'\\xFF'", 0, 0},
|
|
|
|
|
|
{_Literal, "'\\uff16'", 0, 0},
|
|
|
|
|
|
{_Literal, "'\\U0000ff16'", 0, 0},
|
|
|
|
|
|
{_Literal, "`foobar`", 0, 0},
|
|
|
|
|
|
{_Literal, "`foo\tbar`", 0, 0},
|
|
|
|
|
|
{_Literal, "`\r`", 0, 0},
|
|
|
|
|
|
|
|
|
|
|
|
// operators
|
|
|
|
|
|
{_Operator, "||", OrOr, precOrOr},
|
|
|
|
|
|
|
|
|
|
|
|
{_Operator, "&&", AndAnd, precAndAnd},
|
|
|
|
|
|
|
|
|
|
|
|
{_Operator, "==", Eql, precCmp},
|
|
|
|
|
|
{_Operator, "!=", Neq, precCmp},
|
|
|
|
|
|
{_Operator, "<", Lss, precCmp},
|
|
|
|
|
|
{_Operator, "<=", Leq, precCmp},
|
|
|
|
|
|
{_Operator, ">", Gtr, precCmp},
|
|
|
|
|
|
{_Operator, ">=", Geq, precCmp},
|
|
|
|
|
|
|
|
|
|
|
|
{_Operator, "+", Add, precAdd},
|
|
|
|
|
|
{_Operator, "-", Sub, precAdd},
|
|
|
|
|
|
{_Operator, "|", Or, precAdd},
|
|
|
|
|
|
{_Operator, "^", Xor, precAdd},
|
|
|
|
|
|
|
|
|
|
|
|
{_Star, "*", Mul, precMul},
|
|
|
|
|
|
{_Operator, "/", Div, precMul},
|
|
|
|
|
|
{_Operator, "%", Rem, precMul},
|
|
|
|
|
|
{_Operator, "&", And, precMul},
|
|
|
|
|
|
{_Operator, "&^", AndNot, precMul},
|
|
|
|
|
|
{_Operator, "<<", Shl, precMul},
|
|
|
|
|
|
{_Operator, ">>", Shr, precMul},
|
|
|
|
|
|
|
|
|
|
|
|
// assignment operations
|
|
|
|
|
|
{_AssignOp, "+=", Add, precAdd},
|
|
|
|
|
|
{_AssignOp, "-=", Sub, precAdd},
|
|
|
|
|
|
{_AssignOp, "|=", Or, precAdd},
|
|
|
|
|
|
{_AssignOp, "^=", Xor, precAdd},
|
|
|
|
|
|
|
|
|
|
|
|
{_AssignOp, "*=", Mul, precMul},
|
|
|
|
|
|
{_AssignOp, "/=", Div, precMul},
|
|
|
|
|
|
{_AssignOp, "%=", Rem, precMul},
|
|
|
|
|
|
{_AssignOp, "&=", And, precMul},
|
|
|
|
|
|
{_AssignOp, "&^=", AndNot, precMul},
|
|
|
|
|
|
{_AssignOp, "<<=", Shl, precMul},
|
|
|
|
|
|
{_AssignOp, ">>=", Shr, precMul},
|
|
|
|
|
|
|
|
|
|
|
|
// other operations
|
|
|
|
|
|
{_IncOp, "++", Add, precAdd},
|
|
|
|
|
|
{_IncOp, "--", Sub, precAdd},
|
|
|
|
|
|
{_Assign, "=", 0, 0},
|
|
|
|
|
|
{_Define, ":=", 0, 0},
|
2016-11-04 16:27:31 -07:00
|
|
|
|
{_Arrow, "<-", 0, 0},
|
2016-03-04 17:09:08 -08:00
|
|
|
|
|
|
|
|
|
|
// delimiters
|
|
|
|
|
|
{_Lparen, "(", 0, 0},
|
|
|
|
|
|
{_Lbrack, "[", 0, 0},
|
|
|
|
|
|
{_Lbrace, "{", 0, 0},
|
|
|
|
|
|
{_Rparen, ")", 0, 0},
|
|
|
|
|
|
{_Rbrack, "]", 0, 0},
|
|
|
|
|
|
{_Rbrace, "}", 0, 0},
|
|
|
|
|
|
{_Comma, ",", 0, 0},
|
|
|
|
|
|
{_Semi, ";", 0, 0},
|
|
|
|
|
|
{_Colon, ":", 0, 0},
|
|
|
|
|
|
{_Dot, ".", 0, 0},
|
|
|
|
|
|
{_DotDotDot, "...", 0, 0},
|
|
|
|
|
|
|
|
|
|
|
|
// keywords
|
|
|
|
|
|
{_Break, "break", 0, 0},
|
|
|
|
|
|
{_Case, "case", 0, 0},
|
|
|
|
|
|
{_Chan, "chan", 0, 0},
|
|
|
|
|
|
{_Const, "const", 0, 0},
|
|
|
|
|
|
{_Continue, "continue", 0, 0},
|
|
|
|
|
|
{_Default, "default", 0, 0},
|
|
|
|
|
|
{_Defer, "defer", 0, 0},
|
|
|
|
|
|
{_Else, "else", 0, 0},
|
|
|
|
|
|
{_Fallthrough, "fallthrough", 0, 0},
|
|
|
|
|
|
{_For, "for", 0, 0},
|
|
|
|
|
|
{_Func, "func", 0, 0},
|
|
|
|
|
|
{_Go, "go", 0, 0},
|
|
|
|
|
|
{_Goto, "goto", 0, 0},
|
|
|
|
|
|
{_If, "if", 0, 0},
|
|
|
|
|
|
{_Import, "import", 0, 0},
|
|
|
|
|
|
{_Interface, "interface", 0, 0},
|
|
|
|
|
|
{_Map, "map", 0, 0},
|
|
|
|
|
|
{_Package, "package", 0, 0},
|
|
|
|
|
|
{_Range, "range", 0, 0},
|
|
|
|
|
|
{_Return, "return", 0, 0},
|
|
|
|
|
|
{_Select, "select", 0, 0},
|
|
|
|
|
|
{_Struct, "struct", 0, 0},
|
|
|
|
|
|
{_Switch, "switch", 0, 0},
|
|
|
|
|
|
{_Type, "type", 0, 0},
|
|
|
|
|
|
{_Var, "var", 0, 0},
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func TestScanErrors(t *testing.T) {
|
|
|
|
|
|
for _, test := range []struct {
|
|
|
|
|
|
src, msg string
|
2016-11-29 16:13:09 -08:00
|
|
|
|
line, col uint
|
2016-03-04 17:09:08 -08:00
|
|
|
|
}{
|
|
|
|
|
|
// Note: Positions for lexical errors are the earliest position
|
|
|
|
|
|
// where the error is apparent, not the beginning of the respective
|
|
|
|
|
|
// token.
|
|
|
|
|
|
|
|
|
|
|
|
// rune-level errors
|
2016-11-29 16:13:09 -08:00
|
|
|
|
{"fo\x00o", "invalid NUL character", 1, 3},
|
|
|
|
|
|
{"foo\n\ufeff bar", "invalid BOM in the middle of the file", 2, 1},
|
|
|
|
|
|
{"foo\n\n\xff ", "invalid UTF-8 encoding", 3, 1},
|
2016-03-04 17:09:08 -08:00
|
|
|
|
|
|
|
|
|
|
// token-level errors
|
2016-11-29 16:13:09 -08:00
|
|
|
|
{"x + ~y", "bitwise complement operator is ^", 1, 5},
|
|
|
|
|
|
{"foo$bar = 0", "illegal character U+0024 '$'", 1, 4},
|
|
|
|
|
|
{"const x = 0xyz", "malformed hex constant", 1, 13},
|
|
|
|
|
|
{"0123456789", "malformed octal constant", 1, 11},
|
|
|
|
|
|
{"0123456789. /* foobar", "comment not terminated", 1, 13}, // valid float constant
|
|
|
|
|
|
{"0123456789e0 /*\nfoobar", "comment not terminated", 1, 14}, // valid float constant
|
|
|
|
|
|
{"var a, b = 08, 07\n", "malformed octal constant", 1, 14},
|
|
|
|
|
|
{"(x + 1.0e+x)", "malformed floating-point constant exponent", 1, 11},
|
|
|
|
|
|
|
|
|
|
|
|
{`''`, "empty character literal or unescaped ' in character literal", 1, 2},
|
|
|
|
|
|
{"'\n", "newline in character literal", 1, 2},
|
|
|
|
|
|
{`'\`, "missing '", 1, 3},
|
|
|
|
|
|
{`'\'`, "missing '", 1, 4},
|
|
|
|
|
|
{`'\x`, "missing '", 1, 4},
|
|
|
|
|
|
{`'\x'`, "non-hex character in escape sequence: '", 1, 4},
|
|
|
|
|
|
{`'\y'`, "unknown escape sequence", 1, 3},
|
|
|
|
|
|
{`'\x0'`, "non-hex character in escape sequence: '", 1, 5},
|
|
|
|
|
|
{`'\00'`, "non-octal character in escape sequence: '", 1, 5},
|
|
|
|
|
|
{`'\377' /*`, "comment not terminated", 1, 8}, // valid octal escape
|
|
|
|
|
|
{`'\378`, "non-octal character in escape sequence: 8", 1, 5},
|
|
|
|
|
|
{`'\400'`, "octal escape value > 255: 256", 1, 6},
|
|
|
|
|
|
{`'xx`, "missing '", 1, 3},
|
|
|
|
|
|
|
|
|
|
|
|
{"\"\n", "newline in string", 1, 2},
|
|
|
|
|
|
{`"`, "string not terminated", 1, 1},
|
|
|
|
|
|
{`"foo`, "string not terminated", 1, 1},
|
|
|
|
|
|
{"`", "string not terminated", 1, 1},
|
|
|
|
|
|
{"`foo", "string not terminated", 1, 1},
|
|
|
|
|
|
{"/*/", "comment not terminated", 1, 1},
|
|
|
|
|
|
{"/*\n\nfoo", "comment not terminated", 1, 1},
|
|
|
|
|
|
{"/*\n\nfoo", "comment not terminated", 1, 1},
|
|
|
|
|
|
{`"\`, "string not terminated", 1, 1},
|
|
|
|
|
|
{`"\"`, "string not terminated", 1, 1},
|
|
|
|
|
|
{`"\x`, "string not terminated", 1, 1},
|
|
|
|
|
|
{`"\x"`, "non-hex character in escape sequence: \"", 1, 4},
|
|
|
|
|
|
{`"\y"`, "unknown escape sequence", 1, 3},
|
|
|
|
|
|
{`"\x0"`, "non-hex character in escape sequence: \"", 1, 5},
|
|
|
|
|
|
{`"\00"`, "non-octal character in escape sequence: \"", 1, 5},
|
|
|
|
|
|
{`"\377" /*`, "comment not terminated", 1, 8}, // valid octal escape
|
|
|
|
|
|
{`"\378"`, "non-octal character in escape sequence: 8", 1, 5},
|
|
|
|
|
|
{`"\400"`, "octal escape value > 255: 256", 1, 6},
|
|
|
|
|
|
|
|
|
|
|
|
{`s := "foo\z"`, "unknown escape sequence", 1, 11},
|
|
|
|
|
|
{`s := "foo\z00\nbar"`, "unknown escape sequence", 1, 11},
|
|
|
|
|
|
{`"\x`, "string not terminated", 1, 1},
|
|
|
|
|
|
{`"\x"`, "non-hex character in escape sequence: \"", 1, 4},
|
|
|
|
|
|
{`var s string = "\x"`, "non-hex character in escape sequence: \"", 1, 19},
|
|
|
|
|
|
{`return "\Uffffffff"`, "escape sequence is invalid Unicode code point", 1, 19},
|
2016-03-04 17:09:08 -08:00
|
|
|
|
|
2016-11-30 23:28:40 -08:00
|
|
|
|
{`//line :`, "invalid line number: ", 1, 9},
|
|
|
|
|
|
{`//line :x`, "invalid line number: x", 1, 9},
|
|
|
|
|
|
{`//line foo :`, "invalid line number: ", 1, 13},
|
|
|
|
|
|
{`//line foo:123abc`, "invalid line number: 123abc", 1, 12},
|
|
|
|
|
|
{`/**///line foo:x`, "invalid line number: x", 1, 16},
|
|
|
|
|
|
{`//line foo:0`, "invalid line number: 0", 1, 12},
|
|
|
|
|
|
{fmt.Sprintf(`//line foo:%d`, lineM+1), fmt.Sprintf("invalid line number: %d", lineM+1), 1, 12},
|
|
|
|
|
|
|
2016-03-04 17:09:08 -08:00
|
|
|
|
// former problem cases
|
2016-11-29 16:13:09 -08:00
|
|
|
|
{"package p\n\n\xef", "invalid UTF-8 encoding", 3, 1},
|
2016-03-04 17:09:08 -08:00
|
|
|
|
} {
|
|
|
|
|
|
var s scanner
|
|
|
|
|
|
nerrors := 0
|
2016-11-30 23:28:40 -08:00
|
|
|
|
s.init("", &bytesReader{[]byte(test.src)}, func(err error) {
|
2016-03-04 17:09:08 -08:00
|
|
|
|
nerrors++
|
|
|
|
|
|
// only check the first error
|
2016-11-08 16:01:56 -08:00
|
|
|
|
e := err.(Error) // we know it's an Error
|
2016-03-04 17:09:08 -08:00
|
|
|
|
if nerrors == 1 {
|
2016-11-08 16:01:56 -08:00
|
|
|
|
if e.Msg != test.msg {
|
|
|
|
|
|
t.Errorf("%q: got msg = %q; want %q", test.src, e.Msg, test.msg)
|
2016-03-04 17:09:08 -08:00
|
|
|
|
}
|
2016-11-08 16:01:56 -08:00
|
|
|
|
if e.Line != test.line {
|
|
|
|
|
|
t.Errorf("%q: got line = %d; want %d", test.src, e.Line, test.line)
|
2016-03-04 17:09:08 -08:00
|
|
|
|
}
|
2016-11-29 16:13:09 -08:00
|
|
|
|
if e.Col != test.col {
|
|
|
|
|
|
t.Errorf("%q: got col = %d; want %d", test.src, e.Col, test.col)
|
|
|
|
|
|
}
|
2016-03-04 17:09:08 -08:00
|
|
|
|
} else if nerrors > 1 {
|
2016-11-29 16:13:09 -08:00
|
|
|
|
// TODO(gri) make this use position info
|
|
|
|
|
|
t.Errorf("%q: got unexpected %q at line = %d", test.src, e.Msg, e.Line)
|
2016-03-04 17:09:08 -08:00
|
|
|
|
}
|
2016-08-30 16:31:53 -07:00
|
|
|
|
}, nil)
|
2016-03-04 17:09:08 -08:00
|
|
|
|
|
|
|
|
|
|
for {
|
|
|
|
|
|
s.next()
|
|
|
|
|
|
if s.tok == _EOF {
|
|
|
|
|
|
break
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if nerrors == 0 {
|
|
|
|
|
|
t.Errorf("%q: got no error; want %q", test.src, test.msg)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|