Skip to content

Commit

Permalink
extend text coverage for Call times
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhjy committed Nov 21, 2024
1 parent 31a2ed2 commit 9459ceb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,22 @@
op_call = zero_call * one_call
@test op_call isa Call
@test convert(Int, realize(op_call)) === 0
op_call = one_call * one_call
@test op_call isa Call
@test convert(Int, realize(op_call)) === 1
minus_one_call = -one_call
op_call = one_call * minus_one_call
@test op_call isa Call
@test convert(Int, realize(op_call)) === -1
op_call = 0 * one_call
@test op_call isa Call
@test convert(Int, realize(op_call)) === 0
op_call = 1 * one_call
@test op_call isa Call
@test convert(Int, realize(op_call)) === 1
op_call = -1 * one_call
@test op_call isa Call
@test convert(Int, realize(op_call)) === -1
op_call = zero_call * 1
@test op_call isa Call
@test convert(Int, realize(op_call)) === 0
Expand Down

0 comments on commit 9459ceb

Please sign in to comment.