pragma solidity ^0.5.0; import "./libraries/Utilities.sol"; import "./libraries/TellorGettersLibrary.sol"; import "./OldTellorMaster.sol"; /** * @title Utilities Tests * @dev These are the getter function for the two assembly code functions in the * Utilities library */ contract UtilitiesTests{ address internal owner; OldTellorMaster internal tellorMaster; address public tellorMasterAddress; /** * @dev The constructor sets the owner */ constructor () public{ owner = msg.sender; } /** *@dev Set TellorMaster address *@param _TellorMasterAddress is the Tellor Master address */ function setTellorMaster(address payable _TellorMasterAddress) public { require (msg.sender == owner); tellorMasterAddress = _TellorMasterAddress; tellorMaster = OldTellorMaster(_TellorMasterAddress); } function testgetMax() public view returns(uint _max, uint _index){ uint256[51] memory requests = tellorMaster.getRequestQ(); (_max,_index) = Utilities.getMax(requests); } function testgetMin() public view returns(uint _min, uint _index){ uint256[51] memory requests = tellorMaster.getRequestQ(); (_min,_index) = Utilities.getMin(requests); } }