Ph0enixKM / Amber

💎 Amber the programming language compiled to bash
https://amber-lang.com
GNU General Public License v3.0
3.51k stars 67 forks source link

fix: Special characters get interpolated incorrectly #213

Open Ph0enixKM opened 1 week ago

arapower commented 1 week ago

When I ran cargo test, I got the following failure.

failures:

---- tests::stdlib::input stdout ----
thread 'tests::stdlib::input' panicked at src/tests/stdlib.rs:57:5:
assertion `left == right` failed
  left: "Please enter your name:Hello, $REPLY"
 right: "Please enter your name:Hello, Amber"

However, it seems to have completed successfully in GitHub Actions.

b1ek commented 1 week ago

std::stdlib::input fails for me as well, with the same data as @arapower:

thread 'tests::stdlib::input' panicked at src/tests/stdlib.rs:57:5:
assertion `left == right` failed
  left: "Please enter your name:Hello, $REPLY"
 right: "Please enter your name:Hello, Amber"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
b1ek commented 1 week ago

also this

image

Ph0enixKM commented 1 week ago

also this

This issue is a Heraclitus bug. It has to be fixed in another PR https://github.com/Ph0enixKM/Heraclitus/issues/48