Skip to content

Commit

Permalink
updated rank test
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrannell1 committed Jun 30, 2014
1 parent cb1c783 commit a73381b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/test-xInterOf.R
Expand Up @@ -4,7 +4,6 @@ test_cases <- kiwi:::test_cases

require(kiwi)


message("xInterOf")

forall(
Expand Down
9 changes: 8 additions & 1 deletion tests/test-xRankOf.R
Expand Up @@ -8,7 +8,14 @@ message("xRankOf (+)")

describe("rank of empty collection is integer(0)") +
holdsWhen(
is_collection(nums) && length(nums) == 0 && !any(is.na(nums)),
is_collection(nums) && length(nums) == 0 && !any(is.na(nums)) && !is_named(nums),
xRankOf(nums) %is% integer(0)
) +


describe("rank of empty collection is integer(0) (named)") +
holdsWhen(
is_collection(nums) && length(nums) == 0 && !any(is.na(nums)) && is_named(nums),
xRankOf(nums) %is% integer(0)
) +

Expand Down

0 comments on commit a73381b

Please sign in to comment.