Skip to content

Commit 0e53634

Browse files
committed
chore(core): format normalize exports and tests
1 parent c80a7a9 commit 0e53634

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

langcodec/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ pub mod codec;
142142
pub mod converter;
143143
pub mod error;
144144
pub mod formats;
145-
pub mod operations;
146145
pub mod normalize;
146+
pub mod operations;
147147
pub mod placeholder;
148148
pub mod plural_rules;
149149
pub mod provenance;
@@ -162,11 +162,11 @@ pub use crate::{
162162
},
163163
error::{Error, ErrorCode, ErrorContext, StructuredError},
164164
formats::FormatType,
165+
normalize::{KeyStyle, NormalizeOptions, NormalizeReport, normalize_codec},
165166
operations::{
166167
DiffChangedItem, DiffOptions, DiffReport, DiffSummary, LanguageDiff, SyncIssue,
167168
SyncIssueKind, SyncOptions, SyncReport, diff_resources, sync_existing_entries,
168169
},
169-
normalize::{KeyStyle, NormalizeOptions, NormalizeReport, normalize_codec},
170170
placeholder::{extract_placeholders, normalize_placeholders, signature},
171171
plural_rules::{
172172
PluralValidationReport, autofix_fill_missing_from_other_resource,

langcodec/tests/normalize_engine_tests.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ fn normalize_preserves_unicode_letters_in_key_style_transform() {
140140
};
141141

142142
let report = langcodec::normalize::normalize_codec(&mut codec, &options).unwrap();
143-
assert_eq!(codec.resources[0].entries[0].id, "crème_brûlée_你好_weiß_key");
143+
assert_eq!(
144+
codec.resources[0].entries[0].id,
145+
"crème_brûlée_你好_weiß_key"
146+
);
144147
assert!(report.changed);
145148
}
146149

0 commit comments

Comments
 (0)