Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Lift function to "error" statement #14

@fogfish

Description

@fogfish

Currently we are doing

it.Then(t).Should(
		it.Fail(
			func() error {
				return json.Unmarshal([]byte(geometryUnknown), geo)
			},
		),
	)

it would be nice to

it.Then(t).Should(
		it.Fail(json.Unmarshal([]byte(geometryUnknown), geo)),
	)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions