Ad
  • Default User Avatar

    sample test added:
    describe("cellStates", function() {
    it("Test, Initial state is [1, 1, 1, 1, 0, 1, 1, 1] period of time is 1 day", function() {
    Test.assertSimilar(cellStates([1, 1, 1, 1, 0, 1, 1, 1],1), [ 1, 0, 0, 1, 0, 1, 0, 1 ], "Expected result after 1 day is [ 1, 0, 0, 1, 0, 1, 0, 1 ]");
    });
    });

  • Default User Avatar

    initial code added:
    function cellStates(states, days) {

    }

  • Default User Avatar

    Tests added.

  • Default User Avatar

    hit published too soon. Tests added.