summaryrefslogtreecommitdiff
path: root/bindings/go/llvm/ir_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/go/llvm/ir_test.go')
-rw-r--r--bindings/go/llvm/ir_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/go/llvm/ir_test.go b/bindings/go/llvm/ir_test.go
index 325ee4890f4c..fb39955ec10f 100644
--- a/bindings/go/llvm/ir_test.go
+++ b/bindings/go/llvm/ir_test.go
@@ -142,7 +142,7 @@ func TestSubtypes(t *testing.T) {
int_pointer := PointerType(cont.Int32Type(), 0)
int_inner := int_pointer.Subtypes()
if len(int_inner) != 1 {
- t.Errorf("Got size %d, though wanted 1")
+ t.Errorf("Got size %d, though wanted 1", len(int_inner))
}
if int_inner[0] != cont.Int32Type() {
t.Errorf("Expected int32 type")
@@ -151,7 +151,7 @@ func TestSubtypes(t *testing.T) {
st_pointer := cont.StructType([]Type{cont.Int32Type(), cont.Int8Type()}, false)
st_inner := st_pointer.Subtypes()
if len(st_inner) != 2 {
- t.Errorf("Got size %d, though wanted 2")
+ t.Errorf("Got size %d, though wanted 2", len(int_inner))
}
if st_inner[0] != cont.Int32Type() {
t.Errorf("Expected first struct field to be int32")