private void writeList(HList list) { p('['); for (int i = 0; i < list.size(); ++i) { if (i > 0) { p(','); } writeVal(list.get(i)); } p(']'); flush(); }
public void testBasics() { HRef hrefTest = HRef.make("a"); HStr str = HStr.make("string"); List <HVal> items = new List <HVal>(); items.Add(hrefTest); items.Add(str); HList list = HList.make(items); Assert.AreEqual(list.size(), 2); Assert.AreEqual(list.get(0), hrefTest); Assert.AreEqual(list.get(1), str); }