Skip to content

Commit

Permalink
fixing astgrep test
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicDuck committed Sep 9, 2024
1 parent 7030b47 commit de2a5ec
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 341 deletions.
4 changes: 1 addition & 3 deletions tests/astgrep/test_search.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ T['can search with flags resulting in plain text output'] = function()
})

helpers.childWaitForFinishedStatus(child)

helpers.childExpectScreenshot(child)
helpers.childExpectBufLines(child)
helpers.childWaitForScreenshotText(child, 'Usage: sg run')
end

T['can search with particular file in paths'] = function()
Expand Down
4 changes: 2 additions & 2 deletions tests/base/test_replace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ T['can replace with empty string'] = function()
helpers.childExpectScreenshot(child)
helpers.childExpectBufLines(child)

child.type_keys('<esc>cc', 'and')
helpers.childWaitForScreenshotText(child, 'and walks')
child.type_keys('<esc>cc', 'drinks')
helpers.childWaitForScreenshotText(child, '1 matches in 1 files')
helpers.childWaitForFinishedStatus(child)
helpers.childExpectScreenshot(child)
end
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
01|  Actions / Help <g?>  Replace <,r>  Sync All <,s> ...
02|
03|  Search:
04| and
04| drinks
05|  Replace:
06|
07|  Files Filter:
Expand All @@ -13,15 +13,15 @@
12|
13|
14| STATUS_SUCCESS ⟪ ripgrep ⟫
15| 3 matches in 2 files
15| 1 matches in 1 files
16|
17| file1.txt
18|-┃ 1:2: walks [1]
19|
20| file2.doc
21|-┃ 2:14: talks drinks [2]
22|│┃ 3:7: then thinks [3]
23|Grug FAR - 1: and 3,4 Top
17| file2.doc
18|-▒ 2:19: talks and drinks [1]
19|│▒ 2:19: talks and [2]
20|
21|~
22|~
23|Grug FAR - 1: drinks 3,7 All
24|-- INSERT --

--|---------|---------|---------|---------|---------|---------|---------|---------|
Expand All @@ -42,10 +42,10 @@
15|44444444444444444444442222222222222222222222222222222222222222222222222222222222
16|00022222222222222222222222222222222222222222222222222222222222222222222222222222
17|00055555555522222222222222222222222222222222222222222222222222222222222222222222
18|05562622222222222222222222222222222222222222222222222222222222222222222222223333
19|00022222222222222222222222222222222222222222222222222222222222222222222222222222
20|00055555555522222222222222222222222222222222222222222222222222222222222222222222
21|05562662222222222222222222222222222222222222222222222222222222222222222222223333
22|05562622222222222222222222222222222222222222222222222222222222222222222222223333
23|77777777777777777777777777777777777777777777777777777777777777777777777777777777
24|11111111111188888888888888888888888888888888888888888888888888888888888888888888
18|06672772222222222222222222666666222222222222222222222222222222222222222222223333
19|01172772222222222222222222222222222222222222222222222222222222222222222222223333
20|00022222222222222222222222222222222222222222222222222222222222222222222222222222
21|00000000000000000000000000000000000000000000000000000000000000000000000000000000
22|00000000000000000000000000000000000000000000000000000000000000000000000000000000
23|88888888888888888888888888888888888888888888888888888888888888888888888888888888
24|11111111111199999999999999999999999999999999999999999999999999999999999999999999

0 comments on commit de2a5ec

Please sign in to comment.