add dynamic check errors for statements

This commit is contained in:
collin 2020-10-24 17:01:40 -07:00
parent 22d6c98c77
commit 6e124e52ff

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{assert_satisfied, expect_compiler_error, generate_main_input, parse_program}; use crate::{assert_satisfied, expect_dynamic_check_error, generate_main_input, parse_program};
use leo_typed::InputValue; use leo_typed::InputValue;
pub mod conditional; pub mod conditional;
@ -60,7 +60,7 @@ fn test_iteration_basic() {
#[test] #[test]
fn test_num_returns_fail() { fn test_num_returns_fail() {
let bytes = include_bytes!("num_returns_fail.leo"); let bytes = include_bytes!("num_returns_fail.leo");
let program = parse_program(bytes).unwrap(); let error = parse_program(bytes).err().unwrap();
expect_compiler_error(program); expect_dynamic_check_error(error);
} }