Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.04 KB

File metadata and controls

52 lines (40 loc) · 1.04 KB

Development Guide

Directory Structure

icu4x/
├─ lib/           # Ruby code
├─ ext/icu4x/     # Rust extension
├─ sig/           # RBS type definitions
├─ spec/          # Tests
└─ doc/           # Documentation

Class Structure

ICU4X
├─ Locale
├─ DataProvider
├─ DataGenerator
├─ DateTimeFormat
├─ NumberFormat
├─ PluralRules
└─ Error
   ├─ LocaleError
   ├─ DataError
   └─ DataGeneratorError

Running Tests

bundle exec rake spec

Test data (spec/fixtures/test-data.postcard) is automatically generated as a dependency of the spec task. Included locales: en, ja, de, ru, ar, und.

Type Checking

RBS type definitions are in sig/icu4x.rbs.

bundle exec steep check

Documentation