ref: 18341c3b341f7f7c151673d2f79299f4074d378b
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) }