Skip to content

Commit 05be0c4

Browse files
committed
spec: gallery parity with the TypeScript examples
The same conversion table interscript-ts examples/ asserts - same bytes from every runtime, demonstrated. Verified locally: 3/3 green.
1 parent a18f86d commit 05be0c4

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎spec/gallery_parity_spec.rb‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
end
18+
end

0 commit comments

Comments
 (0)