Skip to content

Commit

Permalink
Add test for "with" formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Dec 16, 2024
1 parent b338bad commit 2dab20f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests_fmt/expected/with.fut
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def record (x: (f32, f32)) =
x with 0 = 42
with 1 = 1337

def array (x: *[]f32) =
x with [0] = 42
with [1] = 1337
7 changes: 7 additions & 0 deletions tests_fmt/with.fut
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def record (x: (f32, f32)) =
x with 0 = 42
with 1 = 1337

def array (x: *[]f32) =
x with [0] = 42 with
[1] = 1337

0 comments on commit 2dab20f

Please sign in to comment.