diff --git a/spec/normalization_spec.rb b/spec/normalization_spec.rb index 65d9dd0..c66fb28 100644 --- a/spec/normalization_spec.rb +++ b/spec/normalization_spec.rb @@ -16,6 +16,8 @@ module ICU ICU::Normalization.normalize("Å", :nfc).unpack("U*").should == [197] end + # TODO: add more normalization tests + end end # Normalization diff --git a/spec/transliteration_spec.rb b/spec/transliteration_spec.rb index 7509ed2..5e58d7b 100644 --- a/spec/transliteration_spec.rb +++ b/spec/transliteration_spec.rb @@ -13,8 +13,8 @@ module ICU # after { @t.close if @t } - it "should transliterate Greek-Latin" do - transliterator("Greek-Latin").transliterate("Χελλο Ωορλδ").should == "Hello World" + it "should transliterate Latin-Greek" do + transliterator("Latin-Greek").transliterate("Hello World").should == "Χελλο Ωορλδ" end it "should transliterate Lower" do diff --git a/test.c b/test.c index a22ec15..9bd7ce5 100644 --- a/test.c +++ b/test.c @@ -22,14 +22,14 @@ int main (int argc, char const *argv[]) UTransliterator* trans = NULL; UErrorCode status = U_ZERO_ERROR; - trans = utrans_open("Lower", UTRANS_FORWARD, NULL, 0, NULL, &status); + trans = utrans_open("Latin-Greek", UTRANS_FORWARD, NULL, 0, NULL, &status); UChar from[256]; UChar buf[256]; int32_t text_length, limit; - u_uastrcpy(from, "ABC"); + u_uastrcpy(from, "Hello World"); u_strcpy(buf, from); limit = text_length = u_strlen(buf);