MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_float_with_integer_input

Function test_float_with_integer_input

extra_tests/snippets/stdlib_array.py:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def test_float_with_integer_input():
29 f = array("f", [0, 1, 2.0, 3.0])
30 f.append(4)
31 f.insert(0, -1)
32 assert f.count(4) == 1
33 f.remove(1)
34 assert f.index(0) == 1
35 f[0] = -2
36 assert f == array("f", [-2, 0, 2, 3, 4])
37
38
39test_float_with_integer_input()

Callers 1

stdlib_array.pyFile · 0.85

Calls 6

arrayClass · 0.85
appendMethod · 0.45
insertMethod · 0.45
countMethod · 0.45
removeMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected