December 2018
Beginner to intermediate
564 pages
17h 34m
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