You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[test]
fn test_print_bytes()
{
let label_f = "123";
dep::std::println(f"{label_f}");
}
Expected Behavior
I was expecting to be able to print both the array and string as expected.
Bug
Instead we get a panic with:
The application panicked (crashed).
Message: range end index 3 out of range for slice of length 2
Location: compiler/noirc_printable_type/src/lib.rs:135
To Reproduce
Copy the snippet in the issue
Run nargo test --show-output
Installation Method
None
Nargo Version
No response
Additional Context
This is labelled both compiler and nargo as our println is provided type information by the compiler but is implemented using the brillig foreign call functionality that is implemented in nargo.
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Aim
I want to be able to format print string and array values.
Run either of these tests:
or
Expected Behavior
I was expecting to be able to print both the array and string as expected.
Bug
Instead we get a panic with:
To Reproduce
nargo test --show-output
Installation Method
None
Nargo Version
No response
Additional Context
This is labelled both compiler and nargo as our println is provided type information by the compiler but is implemented using the brillig foreign call functionality that is implemented in nargo.
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: