Calc/display_format_test_results...

569 lines
12 KiB
JSON

{
"execution_info": {
"timestamp": "2025-06-05T18:11:38.337776Z",
"total_queries": 12,
"successful": 12,
"failed": 0,
"input_file": "debug_templates\\display_format_test.json"
},
"results": [
{
"index": 0,
"input": "192.168.1.1 + 1",
"output": "192.168.1.2",
"result_type": "FourBytes",
"success": true,
"error": null,
"output_raw": {
"parts": [
[
"custom_type",
"192.168.1.2"
],
[
"class_hint",
"[FourBytes]"
]
],
"formatted_text": "[custom_type]192.168.1.2[class_hint][FourBytes]",
"tag_info": {
"error": {
"fg": "#ff6b6b",
"font": "bold"
},
"result": {
"fg": "#abdbe3"
},
"symbolic": {
"fg": "#82aaff"
},
"numeric": {
"fg": "#c3e88d"
},
"equation": {
"fg": "#c792ea"
},
"info": {
"fg": "#ffcb6b"
},
"comment": {
"fg": "#546e7a"
},
"class_hint": {
"fg": "#888888"
},
"type_hint": {
"fg": "#6a6a6a"
},
"custom_type": {
"fg": "#f9a825"
},
"hex": {
"fg": "#f9a825"
},
"bin": {
"fg": "#4fc3f7"
},
"ip": {
"fg": "#fff176"
},
"date": {
"fg": "#ff8a80"
},
"chr_type": {
"fg": "#80cbc4"
},
"helper": {
"fg": "#ffd700",
"font": "italic"
}
}
},
"display_class": "[FourBytes]"
},
{
"index": 1,
"input": "engine.last_result",
"output": "192.168.1.2",
"result_type": "FourBytes",
"success": true,
"error": null,
"exec_result": "192.168.1.2"
},
{
"index": 2,
"input": "16#FF00",
"output": "16#FF00",
"result_type": "IntBase",
"success": true,
"error": null,
"output_raw": {
"parts": [
[
"custom_type",
"16#FF00"
],
[
"class_hint",
"[IntBase]"
]
],
"formatted_text": "[custom_type]16#FF00[class_hint][IntBase]",
"tag_info": {
"error": {
"fg": "#ff6b6b",
"font": "bold"
},
"result": {
"fg": "#abdbe3"
},
"symbolic": {
"fg": "#82aaff"
},
"numeric": {
"fg": "#c3e88d"
},
"equation": {
"fg": "#c792ea"
},
"info": {
"fg": "#ffcb6b"
},
"comment": {
"fg": "#546e7a"
},
"class_hint": {
"fg": "#888888"
},
"type_hint": {
"fg": "#6a6a6a"
},
"custom_type": {
"fg": "#f9a825"
},
"hex": {
"fg": "#f9a825"
},
"bin": {
"fg": "#4fc3f7"
},
"ip": {
"fg": "#fff176"
},
"date": {
"fg": "#ff8a80"
},
"chr_type": {
"fg": "#80cbc4"
},
"helper": {
"fg": "#ffd700",
"font": "italic"
}
}
},
"display_class": "[IntBase]"
},
{
"index": 3,
"input": "engine.last_result.base",
"output": "16",
"result_type": "int",
"success": true,
"error": null,
"exec_result": 16
},
{
"index": 4,
"input": "x = solve(a**2 - 4, a)",
"output": "[-2, 2]",
"result_type": "list",
"success": true,
"error": null,
"output_raw": {
"parts": [
[
"info",
"x = [-2, 2]"
]
],
"formatted_text": "[info]x = [-2, 2]",
"tag_info": {
"error": {
"fg": "#ff6b6b",
"font": "bold"
},
"result": {
"fg": "#abdbe3"
},
"symbolic": {
"fg": "#82aaff"
},
"numeric": {
"fg": "#c3e88d"
},
"equation": {
"fg": "#c792ea"
},
"info": {
"fg": "#ffcb6b"
},
"comment": {
"fg": "#546e7a"
},
"class_hint": {
"fg": "#888888"
},
"type_hint": {
"fg": "#6a6a6a"
},
"custom_type": {
"fg": "#f9a825"
},
"hex": {
"fg": "#f9a825"
},
"bin": {
"fg": "#4fc3f7"
},
"ip": {
"fg": "#fff176"
},
"date": {
"fg": "#ff8a80"
},
"chr_type": {
"fg": "#80cbc4"
},
"helper": {
"fg": "#ffd700",
"font": "italic"
}
}
},
"display_class": "[list]"
},
{
"index": 5,
"input": "type(engine.symbol_table['x'])",
"output": "<class 'list'>",
"result_type": "type",
"success": true,
"error": null,
"exec_result": "<class 'list'>"
},
{
"index": 6,
"input": "IP4Mask(255.255.255.0)",
"output": "255.255.255.0",
"result_type": "IP4Mask",
"success": true,
"error": null,
"output_raw": {
"parts": [
[
"custom_type",
"255.255.255.0"
],
[
"class_hint",
"[IP4Mask]"
]
],
"formatted_text": "[custom_type]255.255.255.0[class_hint][IP4Mask]",
"tag_info": {
"error": {
"fg": "#ff6b6b",
"font": "bold"
},
"result": {
"fg": "#abdbe3"
},
"symbolic": {
"fg": "#82aaff"
},
"numeric": {
"fg": "#c3e88d"
},
"equation": {
"fg": "#c792ea"
},
"info": {
"fg": "#ffcb6b"
},
"comment": {
"fg": "#546e7a"
},
"class_hint": {
"fg": "#888888"
},
"type_hint": {
"fg": "#6a6a6a"
},
"custom_type": {
"fg": "#f9a825"
},
"hex": {
"fg": "#f9a825"
},
"bin": {
"fg": "#4fc3f7"
},
"ip": {
"fg": "#fff176"
},
"date": {
"fg": "#ff8a80"
},
"chr_type": {
"fg": "#80cbc4"
},
"helper": {
"fg": "#ffd700",
"font": "italic"
}
}
},
"display_class": "[IP4Mask]"
},
{
"index": 7,
"input": "engine.last_result.get_prefix_int()",
"output": "24",
"result_type": "int",
"success": true,
"error": null,
"exec_result": 24
},
{
"index": 8,
"input": "# Este es un comentario",
"output": "None",
"result_type": "NoneType",
"success": true,
"error": null,
"output_raw": {
"parts": [
[
"comment",
"# Este es un comentario"
]
],
"formatted_text": "[comment]# Este es un comentario",
"tag_info": {
"error": {
"fg": "#ff6b6b",
"font": "bold"
},
"result": {
"fg": "#abdbe3"
},
"symbolic": {
"fg": "#82aaff"
},
"numeric": {
"fg": "#c3e88d"
},
"equation": {
"fg": "#c792ea"
},
"info": {
"fg": "#ffcb6b"
},
"comment": {
"fg": "#546e7a"
},
"class_hint": {
"fg": "#888888"
},
"type_hint": {
"fg": "#6a6a6a"
},
"custom_type": {
"fg": "#f9a825"
},
"hex": {
"fg": "#f9a825"
},
"bin": {
"fg": "#4fc3f7"
},
"ip": {
"fg": "#fff176"
},
"date": {
"fg": "#ff8a80"
},
"chr_type": {
"fg": "#80cbc4"
},
"helper": {
"fg": "#ffd700",
"font": "italic"
}
}
},
"display_class": "[NoneType]"
},
{
"index": 9,
"input": "invalid_expression",
"output": "invalid_expression",
"result_type": "Symbol",
"success": true,
"error": null,
"output_raw": {
"parts": [
[
"symbolic",
"invalid_expression"
],
[
"class_hint",
"[Sympy]"
]
],
"formatted_text": "[symbolic]invalid_expression[class_hint][Sympy]",
"tag_info": {
"error": {
"fg": "#ff6b6b",
"font": "bold"
},
"result": {
"fg": "#abdbe3"
},
"symbolic": {
"fg": "#82aaff"
},
"numeric": {
"fg": "#c3e88d"
},
"equation": {
"fg": "#c792ea"
},
"info": {
"fg": "#ffcb6b"
},
"comment": {
"fg": "#546e7a"
},
"class_hint": {
"fg": "#888888"
},
"type_hint": {
"fg": "#6a6a6a"
},
"custom_type": {
"fg": "#f9a825"
},
"hex": {
"fg": "#f9a825"
},
"bin": {
"fg": "#4fc3f7"
},
"ip": {
"fg": "#fff176"
},
"date": {
"fg": "#ff8a80"
},
"chr_type": {
"fg": "#80cbc4"
},
"helper": {
"fg": "#ffd700",
"font": "italic"
}
}
},
"display_class": "[Symbol]"
},
{
"index": 10,
"input": "matriz = Matrix([[1, 2], [3, 4]])",
"output": "Matrix([[1, 2], [3, 4]])",
"result_type": "MutableDenseMatrix",
"success": true,
"error": null,
"output_raw": {
"parts": [
[
"info",
"matriz = Matrix([[1, 2], [3, 4]])"
],
[
"numeric",
"≈ Matrix([[1.00000000000000, 2.00000000000000], [3.00000000000000, 4.00000000000000]])"
]
],
"formatted_text": "[info]matriz = Matrix([[1, 2], [3, 4]]) [numeric]≈ Matrix([[1.00000000000000, 2.00000000000000], [3.00000000000000, 4.00000000000000]])",
"tag_info": {
"error": {
"fg": "#ff6b6b",
"font": "bold"
},
"result": {
"fg": "#abdbe3"
},
"symbolic": {
"fg": "#82aaff"
},
"numeric": {
"fg": "#c3e88d"
},
"equation": {
"fg": "#c792ea"
},
"info": {
"fg": "#ffcb6b"
},
"comment": {
"fg": "#546e7a"
},
"class_hint": {
"fg": "#888888"
},
"type_hint": {
"fg": "#6a6a6a"
},
"custom_type": {
"fg": "#f9a825"
},
"hex": {
"fg": "#f9a825"
},
"bin": {
"fg": "#4fc3f7"
},
"ip": {
"fg": "#fff176"
},
"date": {
"fg": "#ff8a80"
},
"chr_type": {
"fg": "#80cbc4"
},
"helper": {
"fg": "#ffd700",
"font": "italic"
}
}
},
"display_class": "[MutableDenseMatrix]"
},
{
"index": 11,
"input": "engine.symbol_table['matriz'].shape",
"output": "(2, 2)",
"result_type": "tuple",
"success": true,
"error": null,
"exec_result": [
2,
2
]
}
]
}