Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6f5a835

Browse files
committedMar 18, 2021
Add an integration test for HIR output
1 parent e2a7392 commit 6f5a835

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎tests/spec/features/compilation_targets_spec.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,18 @@
9595
end
9696
end
9797

98+
scenario "compiling to HIR" do
99+
editor.set <<~EOF
100+
fn demo() -> impl std::fmt::Display { 42 }
101+
EOF
102+
103+
in_build_menu { click_on("HIR") }
104+
105+
within('.output-result') do
106+
expect(page).to have_content 'fn demo() -> /*impl Trait*/ { 42 }'
107+
end
108+
end
109+
98110
scenario "compiling to WebAssembly" do
99111
in_build_menu { click_on("WASM") }
100112

0 commit comments

Comments
 (0)
Please sign in to comment.