ref: 4aa0e6c6b8a1a23b144b0382d6156aaa55b2c7fd
dir: /lib/std/test/chomp.myr/
use std const main = { check("aaab", "aaa", "b") check("aaa", "aaa", "") check("aa", "aaa", "aa") } const check = {sl, pfx, expected var r r = sl std.chomp(&r, pfx) std.assert(std.eq(r, expected), \ "expected chomp({}, {}) => {}, got {}\n", sl, pfx, expected, r) }