!752 p { new L l; l.add(litmap("a", 1)); printStructure(l); assertSame(l, filterByField_smart(l, "a", 1)); assertEmpty(filterByField_smart(l, "a", 0)); l.add(litmap("a", 2)); assertCollectionContents(ll(litmap("a", 1)), filterByField_smart(l, "a", 1)); assertCollectionContents(ll(litmap("a", 2)), filterByField_smart(l, "a", 2)); l.add(litmap("a", 1, "b", 2)); assertCollectionContents(ll(litmap("a", 1), litmap("a", 1, "b", 2)), filterByField_smart(l, "a", 1)); print("OK"); }