April 2017
Intermediate to advanced
266 pages
7h 4m
English
Solidity test code is put in .sol files. Here are the things you need to note about Solidity tests before writing tests using Solidity:
To learn how to write tests in Solidity, let's explore the default Solidity test code generated by truffle. This is the code, and it can be found in the TestMetacoin.sol file:
pragma Solidity ^0.4.2; import "truffle/Assert.sol"; import ...
Read now
Unlock full access