음성 읽기 단위 확장: 실사용 로그 점검 결과(cm³·fps·t/s·TFLOPS·Nm·MP·mg/dL…)와 분야별 단위, 충돌 표기(5W1H·1990s·3D) 보호
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a50866eaac
commit
8b7f728477
2 files changed
+37
-1
No files matched your search
@@ -30,4 +30,19 @@ describe('spellUnitsForSpeech', () => {
|
||||
assert.equal(f('21.5℃'), '섭씨 21.5도');
|
||||
assert.equal(f('$100'), '100달러');
|
||||
});
|
||||
|
||||
test('실사용 로그에서 빠졌던 단위(cm³·fps·t/s·TFLOPS·Nm·MP·mg/dL)', () => {
|
||||
assert.equal(f('43cm³'), '43세제곱센티미터');
|
||||
assert.equal(f('60fps'), '60프레임 매 초');
|
||||
assert.equal(f('18 t/s'), '18토큰 매 초');
|
||||
assert.equal(f('13TFLOPS'), '13테라플롭스');
|
||||
assert.equal(f('17Nm'), '17뉴턴미터');
|
||||
assert.equal(f('12MP'), '12메가픽셀');
|
||||
assert.equal(f('110mg/dL'), '110밀리그램 퍼 데시리터');
|
||||
assert.equal(f('5.5mmol/L'), '5.5밀리몰 퍼 리터');
|
||||
assert.equal(f('4000mAh'), '4000밀리암페어시');
|
||||
});
|
||||
test('충돌하는 표기는 건드리지 않는다', () => {
|
||||
for (const s of ['1990s 노래', '5W1H 원칙', '3D 프린터', '4K 모니터', '5G 통신', '37.5N', '2000년대']) assert.equal(f(s), s);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user