Skip to content

Commit b129f06

Browse files
committed
Add an integration test for HIR output
1 parent 5169d38 commit b129f06

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/spec/features/compilation_targets_spec.rb

+12
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)