bind: support fields with type error

Fixes golang/go#12328

Change-Id: I42872d26acb1c44522a64405cfa2d0f10fb24485
Reviewed-on: https://go-review.googlesource.com/13919
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
David Crawshaw
2015-08-26 20:25:55 +00:00
parent 905c19f8c0
commit 11fe695b54
16 changed files with 439 additions and 64 deletions
+8
View File
@@ -286,4 +286,12 @@ public class SeqTest extends AndroidTestCase {
String got = a.String();
assertEquals("want Node A points to Node B", "A:B:<end>", got);
}
public void testErrorField() {
final String want = "an error message";
Testpkg.Node n = Testpkg.NewNode("ErrTest");
n.setErr(want);
String got = n.getErr();
assertEquals("want back the error message we set", want, got);
}
}