Skip to content

Commit

Permalink
maj
Browse files Browse the repository at this point in the history
  • Loading branch information
vanilla-extracts committed Nov 26, 2023
1 parent 7984e02 commit 2e34920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interpreting/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ pub fn interpret(
mod test {
use std::collections::HashMap;

use crate::exact_math::rationals::Rationals;
use crate::interpreting::interpreter::interpret;
use crate::parsing::ast::{Ast, Parameters};

Expand All @@ -124,7 +125,7 @@ mod test {
fn test_interpreter_float() {
let mut ram: HashMap<String, Parameters> = HashMap::new();
let mut function: HashMap<String, (Vec<Ast>, Ast)> = HashMap::new();
let expected = Parameters::Float(2.0);
let expected = Parameters::Rational(Rationals::new(1, 2));
let ast = Ast::Node {
value: Parameters::Float(2.0),
left: Box::from(Ast::Nil),
Expand Down

0 comments on commit 2e34920

Please sign in to comment.