!7 p { autoRestart(); new L vars; S pat = print(dollarVarsToStars("a $adjective1 $noun1", vars)); print("Vars: " + sfu(vars)); new Matches m; assertTrue(match(pat, "a funny game", m)); new SS map; for (int i = 0; i < l(m.m); i++) map.put(vars.get(i), m.get(i)); pnl(map); print(" => " + formatDollarVars("a $noun1", map)); assertNull(matchDollarVars("a $x $x", "a funny game")); assertNotNull(matchDollarVars("a $x $y", "a funny game")); print("OK"); }