generate: Fix TestGenerateRun so it snakes around User tables

This commit is contained in:
Sasha Koshka 2025-07-21 14:32:33 -04:00
parent 6017ac1fa3
commit 51ed6aed9f

View File

@ -269,18 +269,19 @@ func TestGenerateRun(test *testing.T) {
&messageUserList,
tu.S(0xC1, 0x01, 0x00, 0x00,
0xA1, 0x03, 0xC1,
0x03,
0x00, 0x00, 0x66, 'r', 'a', 'r', 'i', 't', 'y',
0x00, 0x01, 0x67, 'a', 's', 'd', 'j', 'a', 'd', 's',
0x00, 0x02, 0x23, 0x00, 0x00, 0x03, 0x24,
0x03,
0x00, 0x00, 0x69, 'd', 'e', 'e', 'z', ' ', 'n', 'u', 't', 's',
0x00, 0x01, 0x64, 'l', 'o', 'g', 'y',
0x00, 0x02, 0x23, 0x00, 0x00, 0x80, 0x00,
0x03,
0x00, 0x00, 0x69, 'c', 'r', 'e', 'e', 'k', 'f', 'l', 'o', 'w',
0x00, 0x01, 0x6C, 'i', 'm', ' ', 'c', 'r', 'e', 'e', 'k', 'f', 'l', 'o', 'w',
0x00, 0x02, 0x23, 0x00, 0x00, 0x38, 0x94,
).Add(0x03).AddVar(
[]byte { 0x00, 0x00, 0x66, 'r', 'a', 'r', 'i', 't', 'y' },
[]byte { 0x00, 0x01, 0x67, 'a', 's', 'd', 'j', 'a', 'd', 's' },
[]byte { 0x00, 0x02, 0x23, 0x00, 0x00, 0x03, 0x24 },
).Add(0x03).AddVar(
[]byte { 0x00, 0x00, 0x69, 'd', 'e', 'e', 'z', ' ', 'n', 'u', 't', 's' },
[]byte { 0x00, 0x01, 0x64, 'l', 'o', 'g', 'y' },
[]byte { 0x00, 0x02, 0x23, 0x00, 0x00, 0x80, 0x00 },
).Add(0x03).AddVar(
[]byte { 0x00, 0x00, 0x69, 'c', 'r', 'e', 'e', 'k', 'f', 'l', 'o', 'w' },
[]byte { 0x00, 0x01, 0x6C, 'i', 'm', ' ', 'c', 'r', 'e', 'e', 'k', 'f',
'l', 'o', 'w' },
[]byte { 0x00, 0x02, 0x23, 0x00, 0x00, 0x38, 0x94 },
))
log.Println("MessagePulse")
messagePulse := MessagePulse {