Compare commits
10 commits
0.x
...
sapling-pr
| Author | SHA1 | Date | |
|---|---|---|---|
| a3d44ef447 | |||
| 42feac96e5 | |||
| 7fd1fe226c | |||
| 9bb186d6b0 | |||
| f2eb28cb6c | |||
| dc7f6815fb | |||
| bcd24c31ea | |||
| fc58dd31d8 | |||
| 94dd70fd5a | |||
| e69668b926 |
2 changed files with 15 additions and 1 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -52,6 +52,9 @@ jobs:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Build and test
|
name: Build and test
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
nvim-version: ["v0.9.5", "stable", "nightly"]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
@ -70,7 +73,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
test -d _neovim || {
|
test -d _neovim || {
|
||||||
mkdir -p _neovim
|
mkdir -p _neovim
|
||||||
curl -sL "https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz" | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
|
curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.nvim-version }}/nvim-linux64.tar.gz" | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
|
||||||
11
lua/ivy/utils_escape_test.lua
Normal file
11
lua/ivy/utils_escape_test.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
local utils = require "ivy.utils"
|
||||||
|
|
||||||
|
it("will escape a dollar in the file name", function(t)
|
||||||
|
local result = utils.escape_file_name "/path/to/$file/$name.lua"
|
||||||
|
t.assert_equal(result, "/path/to/\\$file/\\$name.lua")
|
||||||
|
end)
|
||||||
|
|
||||||
|
it("will escape a brackets in the file name", function(t)
|
||||||
|
local result = utils.escape_file_name "/path/to/[file]/[name].lua"
|
||||||
|
t.assert_equal(result, "/path/to/\\[file\\]/\\[name\\].lua")
|
||||||
|
end)
|
||||||
Loading…
Reference in a new issue