Skip to content

Commit

Permalink
test: add test_implicitly_uncastable and test_implicit_castable cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tswast authored and cpcloud committed Nov 4, 2022
1 parent 9992953 commit 438eb19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ibis/tests/expr/test_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,12 +462,15 @@ def test_infer_dtype(value, expected_dtype):
(dt.null, dt.date),
(dt.int8, dt.int64),
(dt.int8, dt.Decimal(12, 2)),
(dt.int16, dt.uint64),
(dt.int32, dt.int32),
(dt.int32, dt.int64),
(dt.uint32, dt.uint64),
(dt.uint32, dt.int64),
(dt.uint32, dt.Decimal(12, 2)),
(dt.uint32, dt.float32),
(dt.uint32, dt.float64),
(dt.uint64, dt.int64),
(dt.Interval('s', dt.int16), dt.Interval('s', dt.int32)),
],
)
Expand All @@ -480,7 +483,9 @@ def test_implicit_castable(source, target):
[
(dt.string, dt.null),
(dt.int32, dt.int16),
(dt.int16, dt.uint64),
(dt.int32, dt.uint16),
(dt.uint64, dt.int16),
(dt.uint64, dt.uint16),
(dt.Decimal(12, 2), dt.int32),
(dt.timestamp, dt.boolean),
(dt.boolean, dt.interval),
Expand Down

0 comments on commit 438eb19

Please sign in to comment.