From 0b058bc2e8f6e2a85770c7a336302e1e2e2395c9 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Sun, 12 May 2024 11:26:09 +0800 Subject: [PATCH] test NewPyModVar --- ssa/ssa_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ssa/ssa_test.go b/ssa/ssa_test.go index 08f00f2d..ef60f7af 100644 --- a/ssa/ssa_test.go +++ b/ssa/ssa_test.go @@ -147,6 +147,10 @@ func TestPyFunc(t *testing.T) { if pkg.NewPyFunc("a", sig) != a { t.Fatal("NewPyFunc(a) failed") } + foo := pkg.NewPyModVar("foo") + if pkg.NewPyModVar("foo") != foo { + t.Fatal("NewPyModVar(foo) failed") + } } func TestVar(t *testing.T) {