Skip to content

Commit 931dece

Browse files
committed
Added run.sh script for all languages to generate updated report
1 parent 72f3450 commit 931dece

File tree

15 files changed

+228
-183
lines changed

15 files changed

+228
-183
lines changed

README.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1 @@
11
# Test Results Comparison
2-
3-
Status Key:
4-
5-
- ✅ All tests passing
6-
- ⚠️ Some tests failing
7-
- ❌ Not supported/Not implemented
8-
9-
Results format: passed/total scenarios
10-
11-
| library | version | Compound Tests | Data-Driven | Non-rules get passed through | Single operator tests |
12-
|:---------------------------------------------------------------------------------------|:--------------------|:-----------------|:--------------|:-------------------------------|:------------------------|
13-
| **[diegoholiveira/jsonlogic/v3](https://github.com/diegoholiveira/jsonlogic) Go** | v3.6.0 (2024-12-09) | 5/5 ✅ | 88/88 ✅ | 7/7 ✅ | 178/178 ✅ |
14-
| **[json-logic-engine](https://github.com/TotalTechGeek/json-logic-engine) JavaScript** | 4.0.2 (2024-12-13) | 5/5 ✅ | 88/88 ✅ | 7/7 ✅ | 178/178 ✅ |
15-
| **[json-logic-js](https://github.com/jwadhams/json-logic-js) JavaScript** | 2.0.5 (2024-07-09) | 5/5 ✅ | 88/88 ✅ | 7/7 ✅ | 178/178 ✅ |
16-
| **[json-logic-php](https://github.com/jwadhams/json-logic-php) PHP** | 1.5.1 (2024-07-09) | 5/5 ✅ | 88/88 ✅ | 7/7 ✅ | 178/178 ✅ |
17-
| **[datalogic-rs](https://github.com/Open-Payments/datalogic-rs) Rust** | 1.0.8 (2024-12-10) | 5/5 ✅ | 88/88 ✅ | 7/7 ✅ | 178/178 ✅ |
18-
| **[json-logic-qubit](https://github.com/nadirizr/json-logic-py) Python** | 0.9.1 (2018-08-15) | 5/5 ✅ | 87/88 ⚠️ | 7/7 ✅ | 178/178 ✅ |
19-
| **[panzi-json-logic](https://github.com/panzi/panzi-json-logic) Python** | 1.0.1 (2021-09-12) | 5/5 ✅ | 87/88 ⚠️ | 7/7 ✅ | 178/178 ✅ |
20-
| **[jsonlogic-rs](https://github.com/Bestowinc/json-logic-rs) Rust** | 0.4.0 (2024-07-01) | 5/5 ✅ | 88/88 ✅ | 7/7 ✅ | 176/178 ⚠️ |
21-
| **[jsonlogic](https://github.com/marvindv/jsonlogic_rs) Rust** | 0.5.1 (2020-03-05) | 4/5 ⚠️ | 79/88 ⚠️ | 7/7 ✅ | 150/178 ⚠️ |
22-
| **[HuanTeng/go-jsonlogic](https://github.com/HuanTeng/go-jsonlogic) Go** | v0.2.0 (2021-09-08) | 4/5 ⚠️ | 18/88 ⚠️ | 7/7 ✅ | 138/178 ⚠️ |
23-
| **[python-jsonlogic](https://github.com/Viicos/jsonlogic) Python** | 0.1.0 (2024-06-02) | 0/5 ❌ | 10/88 ⚠️ | 0/7 ❌ | 53/178 ⚠️ |

compat-tables.sln

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JsonLogic.Tests", "dotnet-tests\JsonLogic.Tests.csproj", "{E3FC7852-EF5A-C019-9CF4-37467E5A630F}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{E3FC7852-EF5A-C019-9CF4-37467E5A630F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{E3FC7852-EF5A-C019-9CF4-37467E5A630F}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{E3FC7852-EF5A-C019-9CF4-37467E5A630F}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{E3FC7852-EF5A-C019-9CF4-37467E5A630F}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {0CA457FF-E529-4AB4-AE96-674D8D809BDA}
23+
EndGlobalSection
24+
EndGlobal

dotnet-tests/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dotnet run

java-tests/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mvn clean compile exec:java

js-tests/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm test

php-tests/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
php main.php

python-tests/run.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
pip uninstall json-logic-qubit panzi-json-logic
2-
pip install json-logic-qubit
1+
pip uninstall json-logic-qubit panzi-json-logic --break-system-packages
2+
pip install json-logic-qubit --break-system-packages
33
export LIBRARY="json-logic-qubit"
4-
python main.py
4+
python3 main.py
55

6-
pip uninstall json-logic-qubit
7-
pip install panzi-json-logic
6+
pip uninstall json-logic-qubit --break-system-packages
7+
pip install panzi-json-logic --break-system-packages
88
export LIBRARY="panzi-json-logic"
9-
python main.py
9+
python3 main.py

results/csharp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,5 +239,5 @@
239239
"success_rate": 63.0457933972311
240240
}
241241
},
242-
"timestamp": "2025-02-15T14:04:05.317694Z"
242+
"timestamp": "2025-02-15T14:19:51.647981Z"
243243
}

results/go.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,16 @@
270270
"total": 34
271271
}
272272
},
273+
"scopes.json": {
274+
"DiegoHOliveira": {
275+
"passed": 0,
276+
"total": 4
277+
},
278+
"HuanTeng": {
279+
"passed": 0,
280+
"total": 4
281+
}
282+
},
273283
"throw.json": {
274284
"DiegoHOliveira": {
275285
"passed": 0,
@@ -324,13 +334,13 @@
324334
"totals": {
325335
"DiegoHOliveira": {
326336
"passed": 626,
327-
"total": 935
337+
"total": 939
328338
},
329339
"HuanTeng": {
330340
"passed": 424,
331-
"total": 935
341+
"total": 939
332342
}
333343
},
334-
"timestamp": "2025-02-12T06:57:26Z",
344+
"timestamp": "2025-02-15T14:19:46Z",
335345
"go_version": "go1.23.0"
336346
}

results/java.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,5 +239,5 @@
239239
"success_rate" : 58.040468583599576
240240
}
241241
},
242-
"timestamp" : "2025-02-15T07:27:06.243845Z"
242+
"timestamp" : "2025-02-15T14:19:50.805898Z"
243243
}

0 commit comments

Comments
 (0)