Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TwFlem committed Jan 23, 2024
1 parent fe3b686 commit ed783a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions search/bwt/bwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,19 +671,19 @@ func printLFDebug(bwt BWT, searchRange interval, iteration int) {
last := bwt.GetTransform()
lastRunCompression := bwt.runBWTCompression.reconstruct()

fullAsciiRange := strings.Builder{}
fullAsciiRange.Grow(searchRange.end + 1)
fullASCIIRange := strings.Builder{}
fullASCIIRange.Grow(searchRange.end + 1)
for i := 0; i < searchRange.start; i++ {
fullAsciiRange.WriteRune('_')
fullASCIIRange.WriteRune('_')
}
for i := searchRange.start; i < searchRange.end; i++ {
fullAsciiRange.WriteRune('^')
fullASCIIRange.WriteRune('^')
}
fullAsciiRange.WriteRune('X')
fullASCIIRange.WriteRune('X')

fmt.Println("BWT Debug Begin Iteration:", iteration)
fmt.Println(last)
fmt.Println(first)
fmt.Println(fullAsciiRange.String())
fmt.Println(fullASCIIRange.String())
fmt.Println(lastRunCompression)
}

0 comments on commit ed783a8

Please sign in to comment.