-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove some pyarrow xfails from tests, further split up (#660)
* wi * go further
- Loading branch information
1 parent
cfcd653
commit 74cbdea
Showing
6 changed files
with
77 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from __future__ import annotations | ||
|
||
from typing import Any | ||
|
||
import pytest | ||
|
||
import narwhals.stable.v1 as nw | ||
from tests.utils import compare_dicts | ||
|
||
data = [1, 4, 2, 5] | ||
|
||
|
||
@pytest.mark.parametrize( | ||
("closed", "expected"), | ||
[ | ||
("left", [True, True, True, False]), | ||
("right", [False, True, True, True]), | ||
("both", [True, True, True, True]), | ||
("none", [False, True, True, False]), | ||
], | ||
) | ||
def test_is_between(constructor_eager: Any, closed: str, expected: list[bool]) -> None: | ||
ser = nw.from_native(constructor_eager({"a": data}), eager_only=True)["a"] | ||
result = ser.is_between(1, 5, closed=closed) | ||
compare_dicts({"a": result}, {"a": expected}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters