public void test() {
verifyGrid("ver:\"2.0\"\n" + "fooBar33\n" + "\n", null, new Object[] { "fooBar33", null, }, new HVal[][] {});
verifyGrid("ver:\"2.0\" tag foo:\"bar\"\n" + "xyz\n" + "\"val\"\n" + "\n",
new HDictBuilder().add("tag", HMarker.VAL).add("foo", HStr.make("bar")).toDict(), new Object[] { "xyz",
null, }, new HVal[][] { new HVal[] { HStr.make("val"), }, });
verifyGrid("ver:\"2.0\"\n" + "val\n" + "N\n" + "\n", null, new Object[] { "val", null, },
new HVal[][] { new HVal[] { null, }, });
verifyGrid(
"ver:\"2.0\"\n" + "a,b\n" + "1,2\n" + "3,4\n" + "\n",
null,
new Object[] { "a", null, "b", null, },
new HVal[][] { new HVal[] { HNum.make(1.0), HNum.make(2.0), },
new HVal[] { HNum.make(3.0), HNum.make(4.0), }, });
verifyGrid(
"ver:\"2.0\" bg: Bin(image/jpeg) mark\n"
+ "file1 dis:\"F1\" icon: Bin(image/gif),file2 icon: Bin(image/jpg)\n" + "Bin(text/plain),N\n"
+ "4,Bin(image/png)\n" + "Bin(text/html; a=foo; bar=\"sep\"),Bin(text/html; charset=utf8)\n",
new HDictBuilder().add("bg", HBin.make("image/jpeg")).add("mark", HMarker.VAL).toDict(),
new Object[] { "file1",
new HDictBuilder().add("icon", HBin.make("image/gif")).add("dis", HStr.make("F1")).toDict(),
"file2", new HDictBuilder().add("icon", HBin.make("image/jpg")).toDict(), },
new HVal[][] {
new HVal[] { HBin.make("text/plain"), null, },
new HVal[] { HNum.make(4.0), HBin.make("image/png"), },
new HVal[] { HBin.make("text/html; a=foo; bar=\"sep\""), HBin.make("text/html; charset=utf8"), }, });