plum

#treesitter#compiler#wasm

git clone https://git.pyrossh.dev/plum

A statically typed, imperative programming language inspired by rust, python


dd87895 — Peter John 2026-11-16T17:40:03+05:30
replay check's other-seed case flips the seed's low half (`f[2]`), not the header width (`f[3]`): a recording's first tick now says its window (`S800,600`), so the width alone no longer moved the run and the case passed only by accident before
Files changed (1) hide show
  1. compiler/cli/src/replay.rs +1 -1
compiler/cli/src/replay.rs CHANGED
@@ -157,7 +157,7 @@ mod tests {
157
157
  assert_eq!(replayed, recorded);
158
158
  // Another seed with the same ticks lays out other orbs.
159
159
  let mut f: Vec<String> = text.lines().next().unwrap().split(' ').map(String::from).collect();
160
- f[3] = (f[3].parse::<i64>().unwrap() ^ 1).to_string();
160
+ f[2] = (f[2].parse::<i64>().unwrap() ^ 1).to_string();
161
161
  let other = format!("{}\n{}", f.join(" "), text.split_once('\n').unwrap().1);
162
162
  let (_, moved) = runReplay(&wasm, assets, &other).unwrap();
163
163
  assert_ne!(moved, recorded);