def test_properties(data: DataObject, coordinates_limits_type_pair: Tuple[ScalarsLimitsType, ScalarsLimitsType], sizes_pair: SizesPair) -> None: (x_coordinates_limits_type, y_coordinates_limits_type) = coordinates_limits_type_pair ((x_coordinates, (min_x_value, max_x_value)), x_type) = x_coordinates_limits_type ((y_coordinates, (min_y_value, max_y_value)), y_type) = y_coordinates_limits_type min_size, max_size = sizes_pair strategy = multipoints(x_coordinates, y_coordinates, min_size=min_size, max_size=max_size) result = data.draw(strategy) assert is_multipoint(result) assert has_valid_size(result.points, min_size=min_size, max_size=max_size) assert multipoint_has_coordinates_types(result, x_type=x_type, y_type=y_type) assert multipoint_has_coordinates_in_range(result, min_x_value=min_x_value, max_x_value=max_x_value, min_y_value=min_y_value, max_y_value=max_y_value) assert all_unique(result.points)
def test_same_coordinates(data: DataObject, coordinates_limits_type: ScalarsLimitsType, sizes_pair: SizesPair) -> None: (coordinates, (min_value, max_value)), type_ = coordinates_limits_type min_size, max_size = sizes_pair strategy = multipoints(coordinates, min_size=min_size, max_size=max_size) result = data.draw(strategy) assert is_multipoint(result) assert has_valid_size(result.points, min_size=min_size, max_size=max_size) assert multipoint_has_coordinates_types(result, x_type=type_, y_type=type_) assert multipoint_has_coordinates_in_range(result, min_x_value=min_value, max_x_value=max_value, min_y_value=min_value, max_y_value=max_value) assert all_unique(result.points)
def test_basic(): assert all_unique(PortedEdgeType.__members__.values())
def test_basic(): assert all_unique(BoundPolygonType.__members__.values())
def test_uniqueness_criteria(tree: Tree) -> None: assert equivalence(all(tree.nearest_point(point) is point for point in tree.points), all_unique(tree.points))
def test_uniqueness_criteria(tree: Tree) -> None: assert equivalence(all(tree.nearest_item(point) == (index, point) for index, point in enumerate(tree.points)), all_unique(tree.points))
def test_basic(): assert all_unique(PortedOperationType.__members__.values())