extend("test")
extend("array")
describe("array:compact", () => {
it("removes falsy ints", () => {
expect_equal(array:compact([0,1,0,2]), [1,2])
})
it("removes falsy strings", () => {
expect_equal(array:compact(["", "x", "", "y"]), ["x","y"])
})
it("removes falsy MixedArray elements", () => {
expect_equal(array:compact([_, 0, "", false, "ok", 3]), ["ok",3])
})
})