feat: weapon wound kind (1.5.1)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { parseWoundKind } from '../../scripts/parsers/gear-parser';
|
||||
|
||||
describe('gear-parser parseWoundKind', () => {
|
||||
it('maps Polish and English labels', () => {
|
||||
expect(parseWoundKind('tnąca')).toBe('cutting');
|
||||
expect(parseWoundKind('Kłująca')).toBe('piercing');
|
||||
expect(parseWoundKind('obuchowa')).toBe('blunt');
|
||||
expect(parseWoundKind('piercing')).toBe('piercing');
|
||||
});
|
||||
|
||||
it('never guesses: missing or unknown stays unspecified', () => {
|
||||
expect(parseWoundKind(undefined)).toBe('');
|
||||
expect(parseWoundKind('')).toBe('');
|
||||
expect(parseWoundKind('ognista')).toBe('');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user