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

Configure Feed

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

1// SPDX-License-Identifier: Apache-2.0 2// SPDX-FileCopyrightText: 2021 The Gleam contributors 3 4use crate::assert_erl; 5 6#[test] 7fn plain() { 8 assert_erl!( 9 r#" 10pub fn main() { 11 todo 12} 13"# 14 ); 15} 16 17#[test] 18fn todo_as() { 19 assert_erl!( 20 r#" 21pub fn main() { 22 todo as "wibble" 23} 24"# 25 ); 26} 27 28#[test] 29fn named() { 30 assert_erl!( 31 r#" 32pub fn main() { 33 todo as "testing" 34} 35"# 36 ); 37} 38 39#[test] 40fn todo_as_function() { 41 assert_erl!( 42 r#" 43pub fn retstring() { 44 "wibble" 45} 46pub fn main() { 47 todo as { retstring() <> "wobble" } 48} 49"# 50 ); 51} 52 53#[test] 54fn piped() { 55 assert_erl!( 56 r#" 57 pub fn main() { 58 "lets" 59 |> todo as "pipe" 60 |> todo as "other todo" 61 } 62 "# 63 ); 64}