mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Fix check_test.go for recent changes
This commit is contained in:
1 parent
ca06083f8a
commit
77e538aec8
1 file changed
+3
-4
@@ -65,7 +65,7 @@ func TestCheck(tt *testing.T) {
|
||||
i base.i32,
|
||||
)
|
||||
|
||||
pri func foo.bar()() {
|
||||
pri func foo.bar() {
|
||||
var x base.u8
|
||||
var y base.i32 = +2
|
||||
var z base.u64[..123]
|
||||
@@ -156,9 +156,8 @@ func TestCheck(tt *testing.T) {
|
||||
|
||||
want := [][2]string{
|
||||
{"a", "array[4] base.u8"},
|
||||
{"args", "args"},
|
||||
{"b", "base.bool"},
|
||||
{"in", "in"},
|
||||
{"out", "out"},
|
||||
{"p", "base.i32"},
|
||||
{"q", "base.i32[0..8]"},
|
||||
{"this", "ptr foo"},
|
||||
@@ -206,7 +205,7 @@ func TestConstValues(tt *testing.T) {
|
||||
|
||||
tm := &t.Map{}
|
||||
for s, wantInt64 := range testCases {
|
||||
src := "packageid \"test\"\npri func foo()() {\n\t" + s + "\n}\n"
|
||||
src := "packageid \"test\"\npri func foo() {\n\t" + s + "\n}\n"
|
||||
|
||||
tokens, _, err := t.Tokenize(tm, filename, []byte(src))
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user