We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f92c473 commit 3857456Copy full SHA for 3857456
editor.ts
@@ -304,10 +304,15 @@ namespace microcode {
304
progToString(progFromString)
305
const pas2 = progToStringRet
306
// 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
- )
+ for (let i = 0; i < buf.length && i < buf2.length; i++) {
+ if (buf[i] != buf2[i]) {
+ control.assert(
+ false,
311
+ `buf/buf2[${i}] = ${buf[i]}/${buf2[i]}`
312
+ )
313
+ }
314
315
+ assert(buf.length == buf2.length, `bufs not same length`)
316
}
317
318
this.configureP1Keys()
0 commit comments