Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import { describe, expect, it } from 'vitest'
import { formatFinalTranscriptSegment } from './dictation-transcript-spacing'
describe('formatFinalTranscriptSegment', () => {
it('adds a boundary between word-like streaming final segments', () => {
expect(formatFinalTranscriptSegment('world', 'hello')).toBe(' world')
})
it('adds a boundary after sentence and phrase punctuation', () => {
expect(formatFinalTranscriptSegment('World', 'Hello.')).toBe(' World')
expect(formatFinalTranscriptSegment('world', 'hello,')).toBe(' world')
})
it('does not add a boundary before punctuation', () => {
expect(formatFinalTranscriptSegment('.', 'hello')).toBe('.')
})
it('does not add a boundary around CJK final segments', () => {
expect(formatFinalTranscriptSegment('世界', '你好')).toBe('世界')
})
})