test: add formatter tests

- Add comprehensive formatter test suite with 38 tests
- Test multiline assignments, FB calls, control structures
- Test IF, FOR, WHILE, CASE, REPEAT statements
- Test regions, structs, var sections
- Update AGENTS.md with formatter test command
This commit is contained in:
2026-02-23 14:16:46 +01:00
parent 4471d9e1d9
commit bfdec0c4b1
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -24,6 +24,7 @@ lua test/run_tests.lua # Run all tests
lua test/test_udt.lua # Run UDT parser tests
lua test/test_db.lua # Run DB parser tests
lua test/test_fb.lua # Run FB parser tests
lua test/test_formatter.lua # Run formatter tests
lua test/test_plc_json.lua # Run plc_json tests
lua test/test_integration.lua # Run integration tests
+1
View File
@@ -28,6 +28,7 @@ local function run_all_tests()
run_test_file("test_udt.lua")
run_test_file("test_db.lua")
run_test_file("test_fb.lua")
run_test_file("test_formatter.lua")
run_test_file("test_plc_json.lua")
run_test_file("test_integration.lua")