Skip to content

Instantly share code, notes, and snippets.

@CinnamonGrrrl
Created March 27, 2018 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CinnamonGrrrl/3b0b701e51fed96f56ea3fa4fe70da83 to your computer and use it in GitHub Desktop.
Save CinnamonGrrrl/3b0b701e51fed96f56ea3fa4fe70da83 to your computer and use it in GitHub Desktop.
function testFinishingFundRising() public {
Clock clock = Clock(DeployedAddresses.Clock());
Funding funding = new Funding(1 days, address(clock));
Assert.equal(funding.isFinished(), false);
clock.setNow(now + 1 days);
Assert.equal(funding.isFinished(), true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment