blueloveTH 3 سال پیش
والد
کامیت
9a64870f89
6فایلهای تغییر یافته به همراه75 افزوده شده و 157 حذف شده
  1. 1 1
      plugins/flutter/CHANGELOG.md
  2. 1 1
      plugins/flutter/pubspec.yaml
  3. 64 152
      plugins/flutter/src/pocketpy.h
  4. 1 1
      plugins/godot/godot-cpp
  5. 2 2
      scripts/run_tests.py
  6. 6 0
      tests/_builtin_ty.py

+ 1 - 1
plugins/flutter/CHANGELOG.md

@@ -1,4 +1,4 @@
-## 0.5.0+6
+## 0.5.0+7
 
 
 + Fix a bug of crash when using multi-thread
 + Fix a bug of crash when using multi-thread
 
 

+ 1 - 1
plugins/flutter/pubspec.yaml

@@ -1,6 +1,6 @@
 name: pocketpy
 name: pocketpy
 description: A lightweight Python interpreter for game engines.
 description: A lightweight Python interpreter for game engines.
-version: 0.5.0+6
+version: 0.5.0+7
 homepage: https://pocketpy.dev
 homepage: https://pocketpy.dev
 repository: https://github.com/blueloveth/pocketpy
 repository: https://github.com/blueloveth/pocketpy
 
 

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 64 - 152
plugins/flutter/src/pocketpy.h


+ 1 - 1
plugins/godot/godot-cpp

@@ -1 +1 @@
-Subproject commit 489e88e885effa484134f98db933ca45659c2026
+Subproject commit 28b2550f587a924f352937579873bfb4909596ca

+ 2 - 2
scripts/run_tests.py

@@ -21,5 +21,5 @@ def test_dir(path):
 
 
 if __name__ == '__main__':
 if __name__ == '__main__':
     ok = test_dir('./tests')
     ok = test_dir('./tests')
-    if not ok:
-        exit(1)
+    if ok:
+        print("ALL TESTS PASSED")

+ 6 - 0
tests/_builtin_ty.py

@@ -42,6 +42,12 @@ s = "123abcrunoob321"
 # assert str.strip( '*' ) == "this is **string** example....wow!!!"
 # assert str.strip( '*' ) == "this is **string** example....wow!!!"
 # assert s.strip( '12' ) == "3abcrunoob3"
 # assert s.strip( '12' ) == "3abcrunoob3"
 
 
+assert str.strip( '*' ) == "this is **string** example....wow!!!"
+assert s.strip( '12' ) == "3abcrunoob3"
+
+s = ' asd\n  asd \n'
+assert s.strip() == 'asd\n  asd'
+
 s1 = "-"
 s1 = "-"
 s2 = ""
 s2 = ""
 seq = ["r","u","n","o","o","b"]
 seq = ["r","u","n","o","o","b"]

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است