import { describe, expect, it } from 'vitest' import { fieldChoices } from './qaInlineFields' describe('correctness choices follow effective coverage', () => { it('allows pending only for uncovered, without changing coverage options', () => { for (const coverage of ['是', '部分覆盖', '待确认', '否但不计入', '']) expect(fieldChoices('is_correct', ['是', '否', '待确认'], coverage)).toEqual(['是', '否']) expect(fieldChoices('is_correct', ['是', '否', '待确认'], '否')).toEqual(['待确认']) expect(fieldChoices('coverage', ['是', '否', '待确认'], '是')).toEqual(['是', '否', '待确认']) }) })