import { describe, expect, it } from 'vitest'
import { plural } from './plural'

describe('plural', () => {
  it('selects the right form and interpolates count', () => {
    const forms = { one: '{count} item', other: '{count} items' }
    expect(plural('en', 1, forms)).toBe('1 item')
    expect(plural('en', 5, forms)).toBe('5 items')
  })
})
