mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Rename ast.Node methods from Foo to AsFoo
This commit is contained in:
1 parent
12773ce74a
commit
ccb78f5db7
21 files changed
+461
-458
No files matched your search
@@ -253,7 +253,7 @@ func TestConstValues(tt *testing.T) {
|
||||
continue
|
||||
}
|
||||
|
||||
got := body[0].Var().Value().ConstValue()
|
||||
got := body[0].AsVar().Value().ConstValue()
|
||||
want := big.NewInt(wantInt64)
|
||||
if got == nil || want == nil || got.Cmp(want) != 0 {
|
||||
tt.Errorf("%q: got %v, want %v", s, got, want)
|
||||
|
||||
Reference in new issue
Block a user