Skip to content

Commit 9af40bb

Browse files
committed
Add test_set_locale_on_initialize to CI
1 parent 6389570 commit 9af40bb

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Test
99
runs-on: ${{ matrix.platform }}
1010
env:
11-
RUST_I18N_DEBUG: 1
11+
RUST_I18N_DEBUG: 0
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: Setup | Cache Cargo

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ release\:cli:
99
release:
1010
cargo release
1111
test:
12+
cargo test -p rust-i18n test_set_locale_on_initialize
1213
cargo test --workspace
1314
cargo test --manifest-path examples/app-workspace/Cargo.toml --workspace
1415
cargo test --manifest-path examples/share-in-workspace/Cargo.toml --workspace

tests/integration_tests.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,9 @@ mod tests {
316316
);
317317
}
318318

319+
// https://github.com/longbridgeapp/rust-i18n/issues/87
319320
#[test]
320-
fn test_set_locale() {
321+
fn test_set_locale_on_initialize() {
321322
rust_i18n::set_locale("zh-CN");
322323
for _ in 0..5 {
323324
assert_eq!(t!("hello"), "Bar - 你好世界!");

0 commit comments

Comments
 (0)