Skip to content

Commit

Permalink
Loop formatting tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Nov 8, 2024
1 parent eb2afd8 commit 72725d6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests_fmt/expected/loop.fut
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions tests_fmt/loop.fut
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 72725d6

Please sign in to comment.