mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user