Skip to content

Occupancy type tests do not use any asserts #78

@HenryGeorgist

Description

@HenryGeorgist

func Test_occupancyCentralTendency(t *testing.T) {

The point of the two occupancy type tests is to get through the logic of getting the central tendency and the sample occupancy type logic without throwing a panic.

we could use recover to trap if a panic occurs. I believe this would have to be inside the loop for the occupancy types.

defer func() {
    if r := recover(); r != nil {
        t.Errorf("PAINC!")
    }
}()

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions