From 72725d67b7f6766c17310d04e330ea06f6b0f2c0 Mon Sep 17 00:00:00 2001 From: Troels Henriksen Date: Fri, 8 Nov 2024 09:04:04 +0100 Subject: [PATCH] Loop formatting tests. --- tests_fmt/expected/loop.fut | 17 +++++++++++++++++ tests_fmt/loop.fut | 14 ++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 tests_fmt/expected/loop.fut create mode 100644 tests_fmt/loop.fut diff --git a/tests_fmt/expected/loop.fut b/tests_fmt/expected/loop.fut new file mode 100644 index 0000000000..ef7ac9fec2 --- /dev/null +++ b/tests_fmt/expected/loop.fut @@ -0,0 +1,17 @@ +def l1 x = loop x for i < 10 do x + i + +def l2 x = + loop x + for i < 10 do + x + i + +def l3 x = + loop x = x + for i < 10 do + x + i + +def l4 x = + loop x = + x + for i < 10 do + x + i diff --git a/tests_fmt/loop.fut b/tests_fmt/loop.fut new file mode 100644 index 0000000000..faf90c3b26 --- /dev/null +++ b/tests_fmt/loop.fut @@ -0,0 +1,14 @@ +def l1 x = loop x for i < 10 do x + i + +def l2 x = + loop x for i < 10 do + x + i + +def l3 x = + loop x = x for i < 10 do + x + i + +def l4 x = + loop x = + x for i < 10 do + x + i