From 5d1e3d416ea5a48521a0a5c8c70552ad78766eb4 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 9 Aug 2025 19:57:37 +0000 Subject: [PATCH] Fix issue #104: Add notworking.md documenting biztools examples test results --- examples/biztools/notworking.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 examples/biztools/notworking.md diff --git a/examples/biztools/notworking.md b/examples/biztools/notworking.md new file mode 100644 index 00000000..b5a7666d --- /dev/null +++ b/examples/biztools/notworking.md @@ -0,0 +1,28 @@ +# BizTools Examples Test Results + +## Working Examples +- `bizmodel.vsh` - This example works correctly and displays a spreadsheet with business model data. + +## Non-Working Examples +All other examples have issues with the `bizmodel.play()` function: + +1. `bizmodel1.vsh` - Error: Unknown field `heroscript` in struct literal of type `PlayBook`. +2. `bizmodel2.vsh` - Error: Unknown field `heroscript` in struct literal of type `PlayBook`. +3. `bizmodel_complete.vsh` - Error: Unknown field `heroscript_path` in struct literal of type `PlayBook`. +4. `bizmodel_export.vsh` - Error: Unknown field `heroscript_path` in struct literal of type `PlayBook`. +5. `bizmodel_full.vsh` - Error: Unknown field `heroscript_path` in struct literal of type `PlayBook`. +6. `costs.vsh` - Error: Unknown field `heroscript` in struct literal of type `PlayBook`. +7. `funding.vsh` - Error: Unknown field `heroscript` in struct literal of type `PlayBook`. +8. `hr.vsh` - Error: Unknown field `heroscript` in struct literal of type `PlayBook`. + +## Common Error Pattern +All non-working examples have the same pattern of errors: + +1. Unknown field (`heroscript` or `heroscript_path`) in struct literal of type `PlayBook`. +2. Reference field `PlayBook.session` must be initialized. +3. Function `bizmodel.play` parameter `plbook` is `mut`, so it requires `mut PlayBook{...}` instead. + +## Environment Setup +- Tests were performed with V language version 0.4.11 a11de72 +- Redis server was running during tests +- All tests were executed from the `/workspace/project/herolib/examples/biztools` directory \ No newline at end of file