spec/js/shared/bidi.spec.js in twitter_cldr_js-2.3.1 vs spec/js/shared/bidi.spec.js in twitter_cldr_js-2.3.2
- old
+ new
@@ -100,6 +100,15 @@
}
}
expect(num_failed).toEqual(0);
});
+
+ it("should be able to reorder RTL text", function() {
+ var bidi_str = TwitterCldr.Bidi.from_string("hello نزوة world", {"direction": "RTL"});
+ bidi_str.reorder_visually();
+ expect(bidi_str.toString()).toEqual("world ةوزن hello");
+ });
+
+ // TODO: add tests for all other methods of Bidi class
+ xit("should implement all other methods properly")
});
\ No newline at end of file