MCPcopy Create free account
hub / github.com/anyoptimization/pymoo / test_init

Function test_init

tests/misc/test_population.py:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def test_init():
10 pop = Population.empty(100)
11 assert len(pop) == 100
12
13 pop = Population([Individual() for _ in range(50)])
14 assert len(pop) == 50
15
16
17def test_copy():

Callers

nothing calls this directly

Calls 3

PopulationClass · 0.90
IndividualClass · 0.90
emptyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…