diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-07-27 12:45:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 12:45:08 +0200 |
commit | 41cefe513054edd1c12f235125220dbc6b4d9451 (patch) | |
tree | 7f526960ee13c27a0ae0cdfa2d1a90a134ba2768 /test/functional/treesitter/parser_spec.lua | |
parent | 8fe9f41f7f9da2009d11855ec0548b9dbe548a69 (diff) | |
download | rneovim-41cefe513054edd1c12f235125220dbc6b4d9451.tar.gz rneovim-41cefe513054edd1c12f235125220dbc6b4d9451.tar.bz2 rneovim-41cefe513054edd1c12f235125220dbc6b4d9451.zip |
build(deps): bump tree-sitter-c to v0.20.4 (#24495)
Diffstat (limited to 'test/functional/treesitter/parser_spec.lua')
-rw-r--r-- | test/functional/treesitter/parser_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/treesitter/parser_spec.lua b/test/functional/treesitter/parser_spec.lua index ae26b92f52..f0144e6f6d 100644 --- a/test/functional/treesitter/parser_spec.lua +++ b/test/functional/treesitter/parser_spec.lua @@ -194,8 +194,8 @@ void ui_refresh(void) local firstrun = q(1) local manyruns = q(100) - -- First run should be at least 400x slower than an 100 subsequent runs. - local factor = is_os('win') and 200 or 400 + -- First run should be at least 200x slower than an 100 subsequent runs. + local factor = is_os('win') and 100 or 200 assert(factor * manyruns < firstrun, ('firstrun: %f ms, manyruns: %f ms'):format(firstrun / 1e6, manyruns / 1e6)) end) @@ -765,9 +765,9 @@ int x = INT_MAX; eq("table", exec_lua("return type(parser:children().c)")) eq({ {0, 0, 7, 0}, -- root tree - {3, 15, 3, 16}, -- VALUE 123 - {4, 16, 4, 17}, -- VALUE1 123 - {5, 16, 5, 17}, -- VALUE2 123 + {3, 16, 3, 16}, -- VALUE 123 + {4, 17, 4, 17}, -- VALUE1 123 + {5, 17, 5, 17}, -- VALUE2 123 {1, 26, 1, 63}, -- READ_STRING(x, y) (char *)read_string((x), (size_t)(y)) {2, 29, 2, 66} -- READ_STRING_OK(x, y) (char *)read_string((x), (size_t)(y)) }, get_ranges()) |