feat: 一大堆优化

This commit is contained in:
claude-code-best
2026-04-21 20:31:10 +08:00
parent b5525f63c6
commit f74492617b
8 changed files with 599 additions and 235 deletions

View File

@@ -0,0 +1,18 @@
import { describe, expect, test } from 'bun:test'
import { renderAnimatedSprite } from '../sprites/renderer'
describe('renderAnimatedSprite', () => {
test('flip preserves sprite width alignment across rows', () => {
const lines = [
' AB',
' C',
]
const flipped = renderAnimatedSprite(lines, 0, 'flip')
expect(flipped).toEqual([
'\x1b[0mBA \x1b[0m',
'\x1b[0m C \x1b[0m',
])
})
})