Skip to content

Commit

Permalink
add test case for #106
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejiang committed Jun 30, 2020
1 parent 3411a91 commit a1fa56d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/testthat/flowjo2gs_internalTestSuite.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ context("parse workspaces of various flowJo versions ")
library(data.table)
path <- "~/rglab/workspace/CytoML/wsTestSuite"

test_that("verify the extend logic no longer needed for the gate defined in biexp scale from latest flowjo wsp output",{
wsFile <- file.path(path, "gate_negative_area.wsp")
ws <- open_flowjo_xml(wsFile)
thispath <- system.file("extdata", package = "flowWorkspaceData")
gs <- flowjo_to_gatingset(ws, name=1, path = thispath, extend_val = -Inf)

res <- gh_pop_compare_stats(gs[[1]])

expect_equal(res[, xml.freq], res[, openCyto.freq], tol = 0.0003)


})
test_that("bypass faulty node",{

wsFile <- file.path(path, "bypassfaultynode.xml")
Expand Down

0 comments on commit a1fa56d

Please sign in to comment.