Skip to content

Commit

Permalink
update scope test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Mar 19, 2024
1 parent 0d4da92 commit 62b0517
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,43 @@ end
[#1 Content] =
[#1 Removal] =
[#1 Domain] = 0:0-1:29
0| if x < y then
>-------------
0| if x < y then
1| print("x is less than y")
-----------------------------<

[#1 Interior] = 1:4-1:29
1| print("x is less than y")
>-------------------------<
1| print("x is less than y")

[#1 Insertion delimiter] = "\n"


[#2 Content] =
[#2 Removal] =
[#2 Domain] = 2:0-3:32
2| elseif x > y then
>-----------------
2| elseif x > y then
3| print("x is greater than y")
--------------------------------<

[#2 Interior] = 3:4-3:32
3| print("x is greater than y")
>----------------------------<
3| print("x is greater than y")

[#2 Insertion delimiter] = "\n"


[#3 Content] =
[#3 Removal] =
[#3 Domain] = 4:0-5:28
4| else
>----
4| else
5| print("x is equal to y")
----------------------------<

[#3 Interior] = 5:4-5:28
5| print("x is equal to y")
>------------------------<
5| print("x is equal to y")

[#3 Insertion delimiter] = "\n"
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ print("a is greater than 10")

[Content] =
[Removal] = 0:0-0:5
0| print("a is greater than 10")
>-----<
0| print("a is greater than 10")

[Domain] = 0:0-0:29
0| print("a is greater than 10")
>-----------------------------<
0| print("a is greater than 10")

[Insertion delimiter] = " "
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ foo = { bar = "a", baz = "b" }

[Content] =
[Domain] = 0:6-0:30
0| foo = { bar = "a", baz = "b" }
>------------------------<
0| foo = { bar = "a", baz = "b" }

[Removal] = 0:5-0:30
0| foo = { bar = "a", baz = "b" }
>-------------------------<
0| foo = { bar = "a", baz = "b" }

[Leading delimiter] = 0:5-0:6
0| foo = { bar = "a", baz = "b" }
>-<
0| foo = { bar = "a", baz = "b" }

[Interior: Content] = 0:8-0:28
0| foo = { bar = "a", baz = "b" }
>--------------------<
[Interior: Removal] = 0:7-0:29
0| foo = { bar = "a", baz = "b" }
[Interior: Removal] = 0:7-0:29
>----------------------<
0| foo = { bar = "a", baz = "b" }

[Insertion delimiter] = " "
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ a, b = 1, 2
---

[Content] = 0:0-0:4
0| a, b = 1, 2
>----<
0| a, b = 1, 2

[Removal] = 0:0-0:7
0| a, b = 1, 2
>-------<
0| a, b = 1, 2

[Trailing delimiter] = 0:4-0:7
0| a, b = 1, 2
>---<
0| a, b = 1, 2

[Domain] = 0:0-0:11
0| a, b = 1, 2
>-----------<
0| a, b = 1, 2

[Insertion delimiter] = " "
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ local a, b = 1, 2
---

[Content] = 0:6-0:10
0| local a, b = 1, 2
>----<
0| local a, b = 1, 2

[Removal] = 0:0-0:13
0| local a, b = 1, 2
>-------------<
0| local a, b = 1, 2

[Leading delimiter] = 0:5-0:6
0| local a, b = 1, 2
>-<
0| local a, b = 1, 2

[Trailing delimiter] = 0:10-0:11
0| local a, b = 1, 2
>-<
0| local a, b = 1, 2

[Domain] = 0:0-0:17
0| local a, b = 1, 2
>-----------------<
0| local a, b = 1, 2

[Insertion delimiter] = " "
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,22 @@ end
[Content] =
[Removal] =
[Domain] = 0:0-6:3
0| function makeCounter()
>----------------------
0| function makeCounter()
1| local count = 0
-------------------
2| return function()
---------------------
3| count = count + 1
-------------------------
4| return count
--------------------
5| end
-------
6| end
---<

[Interior] = 1:4-5:7
1| local count = 0
>---------------
1| local count = 0
2| return function()
---------------------
3| count = count + 1
-------------------------
4| return count
--------------------
5| end
-------<

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ a, b = 1, 2
---

[Content] = 0:7-0:11
0| a, b = 1, 2
>----<
0| a, b = 1, 2

[Removal] = 0:4-0:11
0| a, b = 1, 2
>-------<
0| a, b = 1, 2

[Leading delimiter] = 0:4-0:7
0| a, b = 1, 2
>---<
0| a, b = 1, 2

[Domain] = 0:0-0:11
0| a, b = 1, 2
>-----------<
0| a, b = 1, 2

[Insertion delimiter] = " "
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ local a, b = 1, 2
---

[Content] = 0:13-0:17
0| local a, b = 1, 2
>----<
0| local a, b = 1, 2

[Removal] = 0:10-0:17
0| local a, b = 1, 2
>-------<
0| local a, b = 1, 2

[Leading delimiter] = 0:10-0:13
0| local a, b = 1, 2
>---<
0| local a, b = 1, 2

[Domain] = 0:0-0:17
0| local a, b = 1, 2
>-----------------<
0| local a, b = 1, 2

[Insertion delimiter] = " "

0 comments on commit 62b0517

Please sign in to comment.