Test Failed: strings_spec.lua

Open
#421 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
lua
Domain
testing

Research direction

Run nvim --headless -c 'PlenaryBustedFile tests/plenary/strings_spec.lua' in a clean environment, then inspect tests/plenary/strings_spec.lua around lines 20 and 23. Compare the reported tab-width results with the expected values and confirm whether the failure reproduces without other plugins; done means the discrepancy is explained and the test passes.

Written by the indexing model from the issue text.

Description

nvim --headless -c 'PlenaryBustedFile tests/plenary/strings_spec.lua'


Testing: 	tests/plenary/strings_spec.lua	
Success	||	strings strdisplaywidth lua: ambiwidth = single, "abcde" -> 5	
Success	||	strings strdisplaywidth vim: ambiwidth = single, "abcde" -> 5	
Success	||	strings strdisplaywidth lua: ambiwidth = double, "abcde" -> 5	
Success	||	strings strdisplaywidth vim: ambiwidth = double, "abcde" -> 5	
Fail	||	strings strdisplaywidth lua: ambiwidth = single, "abc	de" -> 10	
            tests/plenary/strings_spec.lua:20: Expected objects to be the same.
            Passed in:
            (number) 6
            Expected:
            (number) 10

            stack traceback:
            	tests/plenary/strings_spec.lua:20: in function <tests/plenary/strings_spec.lua:19>
            	
Fail	||	strings strdisplaywidth vim: ambiwidth = single, "abc	de" -> 10	
            tests/plenary/strings_spec.lua:23: Expected objects to be the same.
            Passed in:
            (number) 6
            Expected:
            (number) 10

            stack traceback:
            	tests/plenary/strings_spec.lua:23: in function <tests/plenary/strings_spec.lua:22>
            	
Fail	||	strings strdisplaywidth lua: ambiwidth = double, "abc	de" -> 10	
            tests/plenary/strings_spec.lua:20: Expected objects to be the same.
            Passed in:
            (number) 6
            Expected:
            (number) 10

            stack traceback:
            	tests/plenary/strings_spec.lua:20: in function <tests/plenary/strings_spec.lua:19>
            	
Fail	||	strings strdisplaywidth vim: ambiwidth = double, "abc	de" -> 10	
            tests/plenary/strings_spec.lua:23: Expected objects to be the same.
            Passed in:
            (number) 6
            Expected:
            (number) 10

            stack traceback:
            	tests/plenary/strings_spec.lua:23: in function <tests/plenary/strings_spec.lua:22>
            	
Success	||	strings strdisplaywidth lua: ambiwidth = single, "アイウエオ" -> 10

It may be related to my other installed plugins or not. Please Run this Test to confirm this issue.

Dominant language
Lua
Stars
3.5k
Forks
340
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nvim-lua/plenary.nvim

All issues in nvim-lua/plenary.nvim

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.