svoid test_CalculatedFieldIndexedList() { CalculatedFieldIndexedList operators = new(o -> o.name); GOperator iround = new GOperator("iround"); GOperator bla = new GOperator("bla"); addAll(operators, iround, bla); assertSameVerbose(iround, operators.getByKey("iround")); assertSameVerbose(bla, operators.getByKey("bla")); assertNullVerbose(operators.getByKey("what")); }