Skip to content

Tests fail on i386 (32 bit) #304

@toddy15

Description

@toddy15

Hi,

I've created a Debian package for anthropic-sdk-go, but some tests failed on i386. The issue is that one of the testing values is too large to fit into int on i386, which is 32 bit wide. The tests pass on our 64-bit architectures.

These are the failure messages:

internal/apiform/form_test.go:221:27: cannot use 237628372683 (untyped int constant) as int value in struct literal (overflows)
internal/apiform/form_test.go:285:38: cannot use 237628372683 (untyped int constant) as int value in struct literal (overflows)
internal/apiform/form_test.go:333:9: cannot use 237628372683 (untyped int constant) as int value in argument to P (overflows)
internal/apijson/json_test.go:369:27: cannot use 237628372683 (untyped int constant) as int value in struct literal (overflows)
internal/apijson/json_test.go:375:38: cannot use 237628372683 (untyped int constant) as int value in struct literal (overflows)
internal/apijson/json_test.go:383:9: cannot use 237628372683 (untyped int constant) as int value in argument to P (overflows)
internal/apijson/json_test.go:567:41: cannot use 237628372683 (untyped int constant) as int value in struct literal (overflows)
internal/apiquery/query_test.go:138:27: cannot use 237628372683 (untyped int constant) as int value in struct literal (overflows)
internal/apiquery/query_test.go:146:19: cannot use 237628372683 (untyped int constant) as int value in struct literal (overflows)
internal/apiquery/query_test.go:147:19: cannot use 237628372683 (untyped int constant) as int value in struct literal (overflows)
internal/apiquery/query_test.go:166:19: cannot use 237628372683 (untyped int constant) as int value in struct literal (overflows)
internal/apiquery/query_test.go:167:19: cannot use 237628372683 (untyped int constant) as int value in struct literal (overflows)
internal/apiquery/query_test.go:178:9: cannot use 237628372683 (untyped int constant) as int value in argument to P (overflows)

See https://ci.debian.net/packages/g/golang-github-anthropics-anthropic-sdk-go/testing/i386/69719590/ for the full testing build log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    sdkAn issue related to sdk internals

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions