mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-27 20:24:52 +03:00
add dynamic check errors for statements
This commit is contained in:
parent
22d6c98c77
commit
6e124e52ff
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user