mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-27 04:01:47 +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
|
||||
// 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;
|
||||
|
||||
pub mod conditional;
|
||||
@ -60,7 +60,7 @@ fn test_iteration_basic() {
|
||||
#[test]
|
||||
fn test_num_returns_fail() {
|
||||
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