Skip to content

Commit

Permalink
run juvix format
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Dec 6, 2023
1 parent 30043bd commit 2f99729
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
24 changes: 13 additions & 11 deletions tests/positive/Format.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -390,18 +390,20 @@ i2479' : {_ : Nat} -> Nat
| {_} := zero;

-- formatting arguments that do not fit in a line
fffffffffffffffffffffffffffffffffffffffffffffffff {f : List
Nat} : Nat := zero;
fffffffffffffffffffffffffffffffffffffffffffffffff
{f : List Nat} : Nat := zero;

-- formatting arguments that do not fit in a line
fff {f : List Nat}
{f0 : List Nat}
{f1 : List Nat}
{f2 : List Nat}
{f3 : List Nat}
{f4 : List Nat}
{f5 : List Nat}
{f6 : List Nat}
{f7 : List Nat} : Nat := zero;
fff
{f : List Nat}
{f0 : List Nat}
{f1 : List Nat}
{f2 : List Nat}
{f3 : List Nat}
{f4 : List Nat}
{f5 : List Nat}
{f6 : List Nat}
{f7 : List Nat}
: Nat := zero;

-- Comment at the end of a module
5 changes: 3 additions & 2 deletions tests/positive/Syntax.juvix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module Syntax;

compose {A B C : Type} (f : B -> C) (g : A -> B) (x : A)
: C := f (g x);
compose
{A B C : Type} (f : B -> C) (g : A -> B) (x : A) : C :=
f (g x);

compose' {A B C : Type} (f : B -> C) (g : A -> B) : A -> C
| x := f (g x);
Expand Down

0 comments on commit 2f99729

Please sign in to comment.