pragma solidity ^0.4.24; import "remix_tests.sol"; // this import is automatically injected by Remix. import "./timesheet.sol"; contract TimesheetTest { function testNoTimeUpdateAfterApproval() public { address employee = this; address boss = this; Timesheet timesheet = new Timesheet(employee, boss); uint _day = 1; timesheet.logWork(_day, 8); timesheet.approveWork(_day); timesheet.logWork(_day, 10); Assert.equal(timesheet.getHoursWorked(_day), uint(8), "hours worked should still be 8!"); } }
0.4.24