From 7bb52c6a24ba0b540997fbc3de17e76a423860de Mon Sep 17 00:00:00 2001 From: devdinc <234956748+devdinc@users.noreply.github.com> Date: Sat, 17 Jan 2026 15:06:54 +0300 Subject: [PATCH 1/5] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 48c0399..93d22a1 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Personal Skript files created for various purposes. All documentation, setup instructions, and usage examples are maintained in the project [wiki](https://github.com/devdinc/skripts/wiki). +For technical details [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/devdinc/skripts) + ## Purpose The wiki includes: @@ -39,7 +41,3 @@ Skript loads files alphabetically, with folders being prioritized. To control lo Currents plans include: - multiline lambda expression - making the test framework support extending over the skriptlang native test suit - ---- - -**For technical details, I recommend you to use deepwiki** From 631885d01f457f8ae92481b59eb378866b1901c8 Mon Sep 17 00:00:00 2001 From: devdinc <234956748+devdinc@users.noreply.github.com> Date: Sat, 17 Jan 2026 21:18:01 +0300 Subject: [PATCH 2/5] Create tests for pdc.sk (#10) * Create tests for pdc.sk Ai generated * Fix test issues * Update README.md --- README.md | 1 + tests/pdc.sk | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 tests/pdc.sk diff --git a/README.md b/README.md index 93d22a1..38d5b1d 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,4 @@ Skript loads files alphabetically, with folders being prioritized. To control lo Currents plans include: - multiline lambda expression - making the test framework support extending over the skriptlang native test suit +- Auto casting for primitives, pdc.sk(new Byte,Integer etc) diff --git a/tests/pdc.sk b/tests/pdc.sk new file mode 100644 index 0000000..bbbf0be --- /dev/null +++ b/tests/pdc.sk @@ -0,0 +1,80 @@ +import: + java.util.HashMap + java.lang.Integer + java.lang.Byte + +test "pdc basic set/get with typed pdt": + + set {_key} to namespaced-key "plugin:test_int" + + set {_key} within test-world for pdt integer to new Integer(42) + assert {_key} within test-world for pdt integer is 42 with "typed pdt get failed" + + +test "pdc overwrite typed value": + + set {_key} to namespaced-key "plugin:test_overwrite" + + set {_key} within test-world for pdt string to "a" + set {_key} within test-world for pdt string to "b" + + assert {_key} within test-world for pdt string is "b" with "overwrite failed" + + +test "pdc delete typed value": + + set {_key} to namespaced-key "plugin:test_delete" + + set {_key} within test-world for pdt long to 100 + delete {_key} within test-world for pdt long + + assert {_key} within test-world for pdt long is not set with "delete failed" + + +test "pdc object serialization (byte_array implicit)": + + set {_key} to namespaced-key "plugin:test_object" + + set {_obj} to new HashMap() + {_obj}.put("a", 1) + {_obj}.put("b", 2) + + set {_key} within test-world to {_obj} + + set {_out} to {_key} within test-world + assert {_out}.get("a") is 1 with "object deserialize failed (a)" + assert {_out}.get("b") is 2 with "object deserialize failed (b)" + + +test "pdc remove object via null": + + set {_key} to namespaced-key "plugin:test_object_remove" + + set {_key} within test-world to "temp" + set {_key} within test-world to null + + assert {_key} within test-world is not set with "object remove via null failed" + + +test "pdc holder vs direct pdc equivalence": + + set {_key} to namespaced-key "plugin:test_holder" + set {_pdc} to test-world's pdc + + set {_key} within test-world for pdt byte to new Byte(7) + assert {_key} within {_pdc} for pdt byte is 7 with "direct pdc access failed" + + +test "pdc boolean pdt": + + set {_key} to namespaced-key "plugin:test_bool" + + set {_key} within test-world for pdt boolean to true + assert {_key} within test-world for pdt boolean is true with "boolean pdt failed" + + +test "pdc default object missing returns none": + + set {_key} to namespaced-key "plugin:test_missing" + + assert {_key} within test-world is not set with "missing object did not return none" From 8d6441e5bedee883a0248441b39ac2f44723fd9d Mon Sep 17 00:00:00 2001 From: devdinc <234956748+devdinc@users.noreply.github.com> Date: Sun, 18 Jan 2026 22:59:08 +0300 Subject: [PATCH 3/5] Create .restructure --- .restructure | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .restructure diff --git a/.restructure b/.restructure new file mode 100644 index 0000000..64b3cec --- /dev/null +++ b/.restructure @@ -0,0 +1,7 @@ +using scripts + +prefix: + 0 libs/singlelinesection.sk + 1 libs/functionsv2.sk + 2 libs/routines.sk + 3 . From 9c8b3b5e03551ceea3e609f6eedae7afb1117990 Mon Sep 17 00:00:00 2001 From: devdinc <234956748+devdinc@users.noreply.github.com> Date: Sun, 18 Jan 2026 23:02:38 +0300 Subject: [PATCH 4/5] Create order-scripts.yml --- .github/workflows/order-scripts.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/order-scripts.yml diff --git a/.github/workflows/order-scripts.yml b/.github/workflows/order-scripts.yml new file mode 100644 index 0000000..319797f --- /dev/null +++ b/.github/workflows/order-scripts.yml @@ -0,0 +1,18 @@ +name: Order Scripts + +on: + push: + branches: + - stable + +permissions: + contents: write + +jobs: + restructure: + runs-on: ubuntu-latest + steps: + - uses: devdinc/restructure-action@v0.1.1 + with: + source-ref: stable + restructure-file: .restructure From 828052836c7e9bb6c2330fc6a0f56337c5ea73da Mon Sep 17 00:00:00 2001 From: devdinc <234956748+devdinc@users.noreply.github.com> Date: Sun, 18 Jan 2026 23:04:29 +0300 Subject: [PATCH 5/5] Update order-scripts.yml --- .github/workflows/order-scripts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/order-scripts.yml b/.github/workflows/order-scripts.yml index 319797f..5039028 100644 --- a/.github/workflows/order-scripts.yml +++ b/.github/workflows/order-scripts.yml @@ -3,7 +3,7 @@ name: Order Scripts on: push: branches: - - stable + - ordered permissions: contents: write