Fix more tests

This commit is contained in:
2025-03-25 18:47:55 +01:00
parent fed140254b
commit aba10267d1
3 changed files with 35 additions and 33 deletions

View File

@@ -720,15 +720,15 @@ func TestJSONProcessor_DeepNesting(t *testing.T) {
"departments": {
"engineering": {
"teams": {
"frontend": {
"members": 12,
"projects": 5,
"status": "active"
},
"backend": {
"members": 8,
"projects": 3,
"status": "active"
},
"frontend": {
"members": 12,
"projects": 5,
"status": "active"
}
}
}
@@ -788,31 +788,31 @@ func TestJSONProcessor_ComplexTransformation(t *testing.T) {
expected := `{
"order": {
"items": [
{
"product": "Widget A",
"quantity": 5,
"price": 10.0,
"total": 50.0,
"discounted_total": 45.0
},
{
"product": "Widget B",
"quantity": 3,
"price": 15.0,
"total": 45.0,
"discounted_total": 40.5
}
],
"customer": {
"name": "John Smith",
"tier": "gold"
},
"items": [
{
"discounted_total": 45,
"price": 10,
"product": "Widget A",
"quantity": 5,
"total": 50
},
{
"discounted_total": 40.5,
"price": 15,
"product": "Widget B",
"quantity": 3,
"total": 45
}
],
"summary": {
"total_items": 8,
"subtotal": 95.0,
"discount": 9.5,
"total": 85.5
"subtotal": 95,
"total": 85.5,
"total_items": 8
}
}
}`