controllogic: debug value is Value (array-capable); lua get narrows to scalar

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Martino Ferrari
2026-06-24 19:50:47 +02:00
parent 088063d9cd
commit 9c1f2685a7
6 changed files with 28 additions and 23 deletions
+3 -3
View File
@@ -79,7 +79,7 @@ func TestDebugObserverCapturesNodeValues(t *testing.T) {
if !ok {
t.Fatal("no event for write node 'w'")
}
if !wEv.HasValue || wEv.Value != 42 {
if !wEv.HasValue || wEv.Value != 42.0 {
t.Errorf("write node event = %+v, want value 42 hasValue true", wEv)
}
if wEv.GraphID != "g1" {
@@ -136,7 +136,7 @@ func TestFireTriggerForcesRun(t *testing.T) {
}
time.Sleep(10 * time.Millisecond)
}
if !wEv.HasValue || wEv.Value != 42 {
if !wEv.HasValue || wEv.Value != 42.0 {
t.Errorf("write node event = %+v, want value 42 hasValue true", wEv)
}
@@ -187,7 +187,7 @@ func TestSimulateSuppressesWrites(t *testing.T) {
if !ok {
t.Fatal("simulate produced no event for write node 'w'")
}
if !wEv.HasValue || wEv.Value != 42 {
if !wEv.HasValue || wEv.Value != 42.0 {
t.Errorf("simulate write event = %+v, want value 42 hasValue true", wEv)
}
if wEv.GraphID != "sim" {