verifyCol(g, 2, "area");
// rows
verifyEq(g.numRows(), 2);
verifyEq(g.isEmpty(), false);
HRow r;
r = g.row(0);
verifyEq(r.get("id"), HRef.make("a"));
verifyEq(r.get("dis"), HStr.make("Alpha"));
verifyEq(r.get("area"), HNum.make(1200));
r = g.row(1);
verifyEq(r.get("id"), HRef.make("b"));
verifyEq(r.get("dis"), HStr.make("Beta"));
verifyEq(r.get("area", false), null);
try {
r.get("area");
fail();
}
catch (UnknownNameException e) {
verifyException(e);
}
verifyEq(r.get("fooBar", false), null);
try {
r.get("fooBar");
fail();
}
catch (UnknownNameException e) {
verifyException(e);
}