From 0086a531a20b6769598f90a9ae9f2739fcdcc14f Mon Sep 17 00:00:00 2001 From: Kiryl Dziamura Date: Tue, 16 Jul 2024 11:56:42 +0200 Subject: [PATCH] add todo tests --- crates/compiler/load/tests/test_reporting.rs | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/crates/compiler/load/tests/test_reporting.rs b/crates/compiler/load/tests/test_reporting.rs index 71418e4288..4eb61cef50 100644 --- a/crates/compiler/load/tests/test_reporting.rs +++ b/crates/compiler/load/tests/test_reporting.rs @@ -14503,4 +14503,38 @@ In roc, functions are always written as a lambda, like{} make partial application explicit. " ); + + // TODO: add the following tests after built-in Tasks are added + // https://github.com/roc-lang/roc/pull/6836 + + // test_report!( + // suffixed_stmt_invalid_type, + // indoc!( + // r###" + // app "test" provides [main] to "./platform" + + // main : Task U64 _ -> _ + // main = \task -> + // task! + // 42 + // "### + // ), + // @r"" + // ); + + // test_report!( + // suffixed_expr_invalid_type, + // indoc!( + // r###" + // app "test" provides [main] to "./platform" + + // main : Task U64 _ -> _ + // main = \task -> + // result : U32 + // result = task! + // result + // "### + // ), + // @r"" + // ); }