Goop while suffering through leetcode things
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import pytest
|
||||
|
||||
import stuff
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("n", "expected"),
|
||||
[
|
||||
(0, 0),
|
||||
(1, 1),
|
||||
(5, 2),
|
||||
(4, 2),
|
||||
(8, 2),
|
||||
(9, 3),
|
||||
],
|
||||
)
|
||||
def test_find_sqrt_ish(n: int, expected: int):
|
||||
assert stuff.find_sqrt_ish(n) == expected
|
||||
Reference in New Issue
Block a user