Skip to content

Commit

Permalink
feat(#15): file
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Oct 1, 2024
1 parent c78935b commit 03be314
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transpiler/fsl_transpiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ mod tests {
use anyhow::Result;
use hamcrest::{equal_to, is, HamcrestMatcher};
use log::Level;
use std::path::Path;

#[test]
fn transpiles_program_as_string() -> Result<()> {
Expand All @@ -158,7 +159,7 @@ mod tests {

#[test]
fn transpiles_program_from_file() -> Result<()> {
let transpiler = Fslt::program(sample_program("me.fsl"));
let transpiler = Fslt::file(Path::new("resources/programs/me.fsl"));
let ast = transpiler.out();
assert_that!(ast["login"].as_str(), is(equal_to(Some("@jeff"))));
Ok(())
Expand Down

0 comments on commit 03be314

Please sign in to comment.