This commit is contained in:
collin 2020-08-16 19:45:35 -07:00
parent c4d1fb67d5
commit e58a5f4e0e
3 changed files with 8 additions and 9 deletions

View File

@ -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) {

View File

@ -1,7 +1,6 @@
use crate::{
assert_satisfied,
expect_compiler_error,
expect_synthesis_error,
field::field_to_decimal_string,
generate_main_input,
parse_program,

View File

@ -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();