Fusion
Fusion copied to clipboard
Look into fuzzing as part of our testing suite
Currently we have unit tests that are a little under-encompassing, for example;
it("should be able to store arbitrary values", function()
local scope = {}
local value = Value(scope, 0)
expect(peek(value)).to.equal(0)
value:set(10)
expect(peek(value)).to.equal(10)
value:set("foo")
expect(peek(value)).to.equal("foo")
end)
It'd be good to try plugging a wider range of values into these tests. We could also look into more complex kinds of fuzzing such as constructing random dependency graphs for testing reactivity.