Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

gleam / compiler-core / src / format / tests / asignments.rs
461 B 30 lines
1// SPDX-License-Identifier: Apache-2.0 2// SPDX-FileCopyrightText: 2023 The Gleam contributors 3 4use crate::assert_format; 5 6// https://github.com/gleam-lang/gleam/issues/2095 7#[test] 8fn comment() { 9 assert_format!( 10 r#"pub fn main() { 11 // Hello 12 let x = 1 13 x 14} 15"# 16 ); 17} 18 19// https://github.com/gleam-lang/gleam/issues/2095 20#[test] 21fn assert_comment() { 22 assert_format!( 23 r#"pub fn main() { 24 // Hello 25 let assert x = 1 26 x 27} 28"# 29 ); 30}