瀏覽代碼

Create 81_frontend.py

blueloveTH 3 年之前
父節點
當前提交
5474e7b637
共有 1 個文件被更改,包括 17 次插入0 次删除
  1. 17 0
      tests/81_frontend.py

+ 17 - 0
tests/81_frontend.py

@@ -0,0 +1,17 @@
+from dis import dis, _s
+
+def f(a):
+    for i in range(100000):
+        a.append(i)
+    a = 0.5
+    a = True
+    a = '123'
+    a = 123, 456
+    a = [1, 2, 3]
+    return a, a, a
+
+def g(a):
+    return f([1,2,3] + a)
+
+x = _s(g)
+assert type(x) is str