You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The Summarize function is not formatting the output as expected in the test TestReference_SummarizeContainsFormattedTitle. The test compares character positions in the summary output, but the actual output does not match the expected values, causing the test to fail.
To Reproduce
Steps to reproduce the behavior:
Run the tests with go test -v
Check the output of TestReference_SummarizeContainsFormattedTitle
Observe the character position mismatch in the summary output.
Expected behavior
The Summarize function should format the title and summary with consistent character positions that match the test's expected output.
Test Output
The test currently produces mismatches like:
Expected: 110, Actual: 53
Expected: 97, Actual: 49
Desktop (please complete the following information):
OS: Linux
Go Version: go1.xx
Additional context
I have analyzed the bug and can provide a fix to ensure the Summarize function works as expected. The issue seems related to the way the lipgloss styles are being applied in the Summarize function.
The text was updated successfully, but these errors were encountered:
Erfanm83
changed the title
Summarize function Returns Incorrect Character Positions in Formatted Output
Additional formatting
Oct 25, 2024
Describe the bug
The
Summarize
function is not formatting the output as expected in the testTestReference_SummarizeContainsFormattedTitle
. The test compares character positions in the summary output, but the actual output does not match the expected values, causing the test to fail.To Reproduce
Steps to reproduce the behavior:
go test -v
TestReference_SummarizeContainsFormattedTitle
Expected behavior
The
Summarize
function should format the title and summary with consistent character positions that match the test's expected output.Test Output
The test currently produces mismatches like:
Desktop (please complete the following information):
Additional context
I have analyzed the bug and can provide a fix to ensure the
Summarize
function works as expected. The issue seems related to the way thelipgloss
styles are being applied in theSummarize
function.The text was updated successfully, but these errors were encountered: