Skip to content

Commit

Permalink
add test for fsharp interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelb committed Feb 6, 2022
1 parent ad835e0 commit 39a4f44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/interpreters/FSharp_fifo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ mod test_fsharp_fifo {
data.current_bloc = String::from("printfn \"lol\"");
let mut interpreter = FSharp_fifo::new(data);
let res = interpreter.run_at_level(SupportLevel::Bloc);
assert!(res.is_ok());
// should panic if not an Ok()
let string_result = res.unwrap();
assert_eq!(string_result, "lol\n");
}
}

0 comments on commit 39a4f44

Please sign in to comment.