mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-24 07:48:04 +03:00
clean up
This commit is contained in:
parent
c4d1fb67d5
commit
e58a5f4e0e
@ -548,7 +548,7 @@ function main(a: u32) {
|
||||
}
|
||||
```
|
||||
|
||||
#### `debug!`
|
||||
#### `console.debug`
|
||||
Enabled by specifying the `-d` flag after a Leo command.
|
||||
```js
|
||||
function main(a: u32) {
|
||||
@ -557,7 +557,7 @@ function main(a: u32) {
|
||||
```
|
||||
|
||||
|
||||
#### `error!`
|
||||
#### `console.error`
|
||||
Prints the error to console.
|
||||
```js
|
||||
function main(a: u32) {
|
||||
|
@ -1,7 +1,6 @@
|
||||
use crate::{
|
||||
assert_satisfied,
|
||||
expect_compiler_error,
|
||||
expect_synthesis_error,
|
||||
field::field_to_decimal_string,
|
||||
generate_main_input,
|
||||
parse_program,
|
||||
|
@ -155,12 +155,12 @@ pub(crate) fn expect_compiler_error(program: EdwardsTestCompiler) -> CompilerErr
|
||||
program.generate_constraints_helper(&mut cs).unwrap_err()
|
||||
}
|
||||
|
||||
pub(crate) fn expect_synthesis_error(program: EdwardsTestCompiler) {
|
||||
let mut cs = TestConstraintSystem::<Fq>::new();
|
||||
let _output = program.generate_constraints_helper(&mut cs).unwrap();
|
||||
|
||||
assert!(!cs.is_satisfied());
|
||||
}
|
||||
// pub(crate) fn expect_synthesis_error(program: EdwardsTestCompiler) {
|
||||
// let mut cs = TestConstraintSystem::<Fq>::new();
|
||||
// let _output = program.generate_constraints_helper(&mut cs).unwrap();
|
||||
//
|
||||
// assert!(!cs.is_satisfied());
|
||||
// }
|
||||
|
||||
pub(crate) fn generate_main_input(input: Vec<(&str, Option<InputValue>)>) -> MainInput {
|
||||
let mut main_input = MainInput::new();
|
||||
|
Loading…
Reference in New Issue
Block a user