Skip to content

Commit 3857456

Browse files
committed
coin modifier/filter mismatch
1 parent f92c473 commit 3857456

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

editor.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,15 @@ namespace microcode {
304304
progToString(progFromString)
305305
const pas2 = progToStringRet
306306
// check the programs are the same
307-
control.assert(
308-
buf.equals(buf2),
309-
`progs not the same:\nP1 ------\n${pas1}\nP2 ---------\n${pas2}`
310-
)
307+
for (let i = 0; i < buf.length && i < buf2.length; i++) {
308+
if (buf[i] != buf2[i]) {
309+
control.assert(
310+
false,
311+
`buf/buf2[${i}] = ${buf[i]}/${buf2[i]}`
312+
)
313+
}
314+
}
315+
assert(buf.length == buf2.length, `bufs not same length`)
311316
}
312317
}
313318
this.configureP1Keys()

0 commit comments

Comments
 (0)