Skip to content

Commit 000a976

Browse files
committed
test for isone
1 parent ffbd4e0 commit 000a976

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_A4.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ end
6767
@test eval(Meta.parse(sprint(show, m))) == m
6868
@test @constinferred(hash(m)) == hash(deepcopy(m))
6969

70+
@test isone(m) == false
71+
@test isone(mop) == false
7072
@test (isone(@constinferred(leftone(m))) && isone(@constinferred(rightone(m))))
7173
@test one(c) == leftone(m) == rightone(mop)
7274
@test one(d) == rightone(m) == leftone(mop)

0 commit comments

Comments
 (0)