Skip to content

Commit

Permalink
Add an integration test for HIR output
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Mar 18, 2021
1 parent e2a7392 commit 6f5a835
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/spec/features/compilation_targets_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@
end
end

scenario "compiling to HIR" do
editor.set <<~EOF
fn demo() -> impl std::fmt::Display { 42 }
EOF

in_build_menu { click_on("HIR") }

within('.output-result') do
expect(page).to have_content 'fn demo() -> /*impl Trait*/ { 42 }'
end
end

scenario "compiling to WebAssembly" do
in_build_menu { click_on("WASM") }

Expand Down

0 comments on commit 6f5a835

Please sign in to comment.