junhewk / RcppMeCab

RcppMeCab: Rcpp Interface of CJK Morpheme Analyzer MeCab
25 stars 9 forks source link

Failure ('test_pos_ko.R:4:3'): Test pos tagger works on ko #13

Open barracuda156 opened 1 year ago

barracuda156 commented 1 year ago
R version 4.2.3 (2023-03-15) -- "Shortstop Beagle"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: powerpc-apple-darwin10.8.0 (32-bit)

> library(testthat)
> library(RcppMeCab)
> 
> test_check("RcppMeCab")
[ FAIL 1 | WARN 0 | SKIP 1 | PASS 0 ]

══ Skipped tests ═══════════════════════════════════════════════════════════════
• Skip testing on Japanese (1)

══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_pos_ko.R:4:3'): Test pos tagger works on ko ──────────────────
...[] not equal to enc2utf8("저").
1/1 mismatches
x[1]: "\xb0\xac"
y[1]: "저"

[ FAIL 1 | WARN 0 | SKIP 1 | PASS 0 ]
Error: Test failures
Execution halted

Version info: mecab 0.996_0+ipadic RcppMeCab 0.0.1.3-2

junhewk commented 6 months ago

test_pos_ja.R and test_pos_ko.R checks user environment and follows "MECAB_LANG" variables. Can you put Sys.setenv("MECAB_LANG") = "ja" and run the test again? I'm so sorry for delayed answer, that my main job and career is far to computer/data science.