Skip to content

Commit cf58261

Browse files
author
webdev778
committed
Add a spec testing rababa
1 parent 299375a commit cf58261

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/interscript-api/lambda_function_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414
expect(rs).to eql("Mikhail Timofeyevich Kalashnikov")
1515
end
1616

17+
it "should return valid data when transliterate is called with Rababa" do
18+
event = {
19+
"body" => '{transliterate(systemCode: "var-ara-Arab-Arab-rababa|odni-ara-Arab-Latn-2015", input: "مِصر")}'
20+
}
21+
rs = handler(event: event)
22+
rs = JSON.parse(rs[:body])["data"]["transliterate"]
23+
expect(rs).to eql("Miṣra")
24+
end
25+
1726
it "should return valid data when detect is called" do
1827
event = {
1928
"body" => '{detect(input: "привет", output: "privet", mapPattern: "icao-ukr-*"){mapName,distance}}'

0 commit comments

Comments
 (0)