1 parent a18f86d commit 05be0c4Copy full SHA for 05be0c4
1 file changed
spec/gallery_parity_spec.rb
@@ -0,0 +1,18 @@
1
+# Gallery parity: the same conversion table the TypeScript example
2
+# gallery (interscript-ts/examples/) asserts. Same bytes from every
3
+# runtime - demonstrated, not claimed. Adding a case = one line.
4
+
5
+require "interscript"
6
+GALLERY = {
7
+ "Антон Олегович" => "Anton Olehovych",
8
+ "Соломія" => "Solomiia",
9
+ "Київ" => "Kyiv",
10
+}.freeze
11
12
+RSpec.describe "gallery parity with the TypeScript examples" do
13
+ GALLERY.each do |input, expected|
14
+ it "bgnpcgn-ukr-Cyrl-Latn-2019: #{input} -> #{expected}" do
15
+ expect(Interscript.transliterate("bgnpcgn-ukr-Cyrl-Latn-2019", input)).to eq(expected)
16
+ end
17
18
+end
0 commit comments