fix tests

This commit is contained in:
brevalferrari 2025-06-02 23:30:07 +02:00
parent c395b2ae38
commit 20c7db953e
2 changed files with 3 additions and 2 deletions

View file

@ -39,8 +39,8 @@ fn main() -> anyhow::Result<()> {
.context("Failed to parse input")?;
let compiler = Compiler::from(Context::new(
'n',
'L',
'n',
opts.variables()
.map(|(a, b)| (*a, *b))
.chain(default_variables.into_iter()),

View file

@ -445,11 +445,12 @@ mod tests {
fn context_generator() -> Context {
Context::new(
'n',
'L',
'n',
[
('a', 5.0),
('t', 0.0),
('n', 0.0),
('N', 12.0),
('L', 0.0),
('l', 4.0),