Skip to content

Commit

Permalink
Add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
piegamesde committed Feb 7, 2024
1 parent 7b1fcf5 commit a273a47
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/diff/apply/in.nix
Original file line number Diff line number Diff line change
Expand Up @@ -306,4 +306,10 @@
)
);
}
(
function (
something
# ...
) { }
)
]
4 changes: 4 additions & 0 deletions test/diff/apply/out.nix
Original file line number Diff line number Diff line change
Expand Up @@ -353,4 +353,8 @@
)
);
}
(function (
something
# ...
) { })
]
65 changes: 65 additions & 0 deletions test/diff/comment/in.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,71 @@
* test
*/

/*
* FOO
*/

/**
* FOO
*/

/*
* FOO
* BAR
*/

/**
Concatenate a list of strings with a separator between each element
# Example
```nix
concatStringsSep "/" ["usr" "local" "bin"]
=> "usr/local/bin"
```
# Type
```
concatStringsSep :: string -> [string] -> string
```
*/

/*
Concatenate a list of strings with a separator between each element
# Example
```nix
concatStringsSep "/" ["usr" "local" "bin"]
=> "usr/local/bin"
```
# Type
```
concatStringsSep :: string -> [string] -> string
```
*/

/*
* Concatenate a list of strings with a separator between each element
*
* # Example
*
* ```nix
* concatStringsSep "/" ["usr" "local" "bin"]
* => "usr/local/bin"
* ```
*
* # Type
*
* ```
* concatStringsSep :: string -> [string] -> string
* ```
*/


[ # 1
#2
a # 3
Expand Down
56 changes: 56 additions & 0 deletions test/diff/comment/out.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,62 @@
# test
# test

# * FOO

#
# FOO

# FOO
# BAR

/* *
Concatenate a list of strings with a separator between each element
# Example
```nix
concatStringsSep "/" ["usr" "local" "bin"]
=> "usr/local/bin"
```
# Type
```
concatStringsSep :: string -> [string] -> string
```
*/

/* Concatenate a list of strings with a separator between each element
# Example
```nix
concatStringsSep "/" ["usr" "local" "bin"]
=> "usr/local/bin"
```
# Type
```
concatStringsSep :: string -> [string] -> string
```
*/

# Concatenate a list of strings with a separator between each element
#
# # Example
#
# ```nix
# concatStringsSep "/" ["usr" "local" "bin"]
# => "usr/local/bin"
# ```
#
# # Type
#
# ```
# concatStringsSep :: string -> [string] -> string
# ```

[
# 1
#2
Expand Down

0 comments on commit a273a47

Please sign in to comment.