-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move files & add argumentOrParameter iteration tests
- Loading branch information
Showing
15 changed files
with
581 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...sorless-vscode-e2e/src/suite/fixtures/scopes/haskell/argumentOrParameter.iteration1.scope
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
fib :: Integer -> Integer | ||
fib 0 = 0 | ||
fib 1 = 1 | ||
fib n = fib (n-1) + fib (n-2) | ||
|
||
--- | ||
|
||
[#1 Content] = | ||
[#1 Removal] = | ||
[#1 Domain] = 1:0-1:9 | ||
0| fib :: Integer -> Integer | ||
|
||
1| fib 0 = 0 | ||
>---------< | ||
2| fib 1 = 1 | ||
|
||
3| fib n = fib (n-1) + fib (n-2) | ||
|
||
4| | ||
|
||
|
||
[#1 Insertion delimiter] = "\n" | ||
|
||
|
||
[#2 Content] = | ||
[#2 Removal] = | ||
[#2 Domain] = 2:0-2:9 | ||
0| fib :: Integer -> Integer | ||
|
||
1| fib 0 = 0 | ||
|
||
2| fib 1 = 1 | ||
>---------< | ||
3| fib n = fib (n-1) + fib (n-2) | ||
|
||
4| | ||
|
||
|
||
[#2 Insertion delimiter] = "\n" | ||
|
||
|
||
[#3 Content] = | ||
[#3 Removal] = | ||
[#3 Domain] = 3:0-3:29 | ||
0| fib :: Integer -> Integer | ||
|
||
1| fib 0 = 0 | ||
|
||
2| fib 1 = 1 | ||
|
||
3| fib n = fib (n-1) + fib (n-2) | ||
>-----------------------------< | ||
4| | ||
|
||
|
||
[#3 Insertion delimiter] = "\n" |
102 changes: 102 additions & 0 deletions
102
...sorless-vscode-e2e/src/suite/fixtures/scopes/haskell/argumentOrParameter.iteration2.scope
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
abs :: Int -> Int | ||
abs x | ||
| x >= 0 = x | ||
| otherwise = -x | ||
|
||
--- | ||
|
||
[#1 Content] = | ||
[#1 Removal] = | ||
[#1 Domain] = 1:0-3:20 | ||
0| abs :: Int -> Int | ||
|
||
1| abs x | ||
>----- | ||
2| | x >= 0 = x | ||
-------------------- | ||
3| | otherwise = -x | ||
--------------------< | ||
4| | ||
|
||
|
||
[#1 Insertion delimiter] = "\n" | ||
|
||
|
||
[#2 Content] = | ||
[#2 Domain] = 2:6-2:20 | ||
0| abs :: Int -> Int | ||
|
||
1| abs x | ||
|
||
2| | x >= 0 = x | ||
>--------------< | ||
3| | otherwise = -x | ||
|
||
4| | ||
|
||
|
||
[#2 Removal] = 2:4-2:20 | ||
0| abs :: Int -> Int | ||
|
||
1| abs x | ||
|
||
2| | x >= 0 = x | ||
>----------------< | ||
3| | otherwise = -x | ||
|
||
4| | ||
|
||
|
||
[#2 Leading delimiter] = 2:5-2:6 | ||
0| abs :: Int -> Int | ||
|
||
1| abs x | ||
|
||
2| | x >= 0 = x | ||
>-< | ||
3| | otherwise = -x | ||
|
||
4| | ||
|
||
|
||
[#2 Insertion delimiter] = "\n" | ||
|
||
|
||
[#3 Content] = | ||
[#3 Domain] = 3:6-3:20 | ||
0| abs :: Int -> Int | ||
|
||
1| abs x | ||
|
||
2| | x >= 0 = x | ||
|
||
3| | otherwise = -x | ||
>--------------< | ||
4| | ||
|
||
|
||
[#3 Removal] = 3:4-3:20 | ||
0| abs :: Int -> Int | ||
|
||
1| abs x | ||
|
||
2| | x >= 0 = x | ||
|
||
3| | otherwise = -x | ||
>----------------< | ||
4| | ||
|
||
|
||
[#3 Leading delimiter] = 3:5-3:6 | ||
0| abs :: Int -> Int | ||
|
||
1| abs x | ||
|
||
2| | x >= 0 = x | ||
|
||
3| | otherwise = -x | ||
>-< | ||
4| | ||
|
||
|
||
[#3 Insertion delimiter] = "\n" |
102 changes: 102 additions & 0 deletions
102
...sorless-vscode-e2e/src/suite/fixtures/scopes/haskell/argumentOrParameter.iteration3.scope
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
bap :: Int -> Int | ||
bap x | ||
| x > 0, x == 0 = x | ||
| otherwise = -x | ||
|
||
--- | ||
|
||
[#1 Content] = | ||
[#1 Removal] = | ||
[#1 Domain] = 1:0-3:20 | ||
0| bap :: Int -> Int | ||
|
||
1| bap x | ||
>----- | ||
2| | x > 0, x == 0 = x | ||
------------------------ | ||
3| | otherwise = -x | ||
--------------------< | ||
4| | ||
|
||
|
||
[#1 Insertion delimiter] = "\n" | ||
|
||
|
||
[#2 Content] = | ||
[#2 Domain] = 2:6-2:24 | ||
0| bap :: Int -> Int | ||
|
||
1| bap x | ||
|
||
2| | x > 0, x == 0 = x | ||
>------------------< | ||
3| | otherwise = -x | ||
|
||
4| | ||
|
||
|
||
[#2 Removal] = 2:4-2:24 | ||
0| bap :: Int -> Int | ||
|
||
1| bap x | ||
|
||
2| | x > 0, x == 0 = x | ||
>--------------------< | ||
3| | otherwise = -x | ||
|
||
4| | ||
|
||
|
||
[#2 Leading delimiter] = 2:5-2:6 | ||
0| bap :: Int -> Int | ||
|
||
1| bap x | ||
|
||
2| | x > 0, x == 0 = x | ||
>-< | ||
3| | otherwise = -x | ||
|
||
4| | ||
|
||
|
||
[#2 Insertion delimiter] = "\n" | ||
|
||
|
||
[#3 Content] = | ||
[#3 Domain] = 3:6-3:20 | ||
0| bap :: Int -> Int | ||
|
||
1| bap x | ||
|
||
2| | x > 0, x == 0 = x | ||
|
||
3| | otherwise = -x | ||
>--------------< | ||
4| | ||
|
||
|
||
[#3 Removal] = 3:4-3:20 | ||
0| bap :: Int -> Int | ||
|
||
1| bap x | ||
|
||
2| | x > 0, x == 0 = x | ||
|
||
3| | otherwise = -x | ||
>----------------< | ||
4| | ||
|
||
|
||
[#3 Leading delimiter] = 3:5-3:6 | ||
0| bap :: Int -> Int | ||
|
||
1| bap x | ||
|
||
2| | x > 0, x == 0 = x | ||
|
||
3| | otherwise = -x | ||
>-< | ||
4| | ||
|
||
|
||
[#3 Insertion delimiter] = "\n" |
Oops, something went wrong.