Skip to content

Commit

Permalink
Fix hindi test and schemes (#24)
Browse files Browse the repository at this point in the history
* test: Fix hindi test cases

According to the current hindi scheme
and mainstream usage:
taa corresponds to ता
tha corresponds to था

* schemes: Remove duplicated "y" key in hindi schemes

This removes warning messages while building hindi schemes
  • Loading branch information
suraj-sloth authored Sep 16, 2024
1 parent 96d3182 commit d5e47f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion schemes/hi/hi.scheme
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ consonants "k" => "क",
["N"] => "ण",
["dh"] => "ध",
["n"] => "न",
"y" => "य",
"r" => ["र", "र#{$virama}"],
"l" => ["ल", "ल#{$virama}"],
["v", "w"] => "व",
Expand Down
4 changes: 2 additions & 2 deletions test/hi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def setup

def test_words
list = {
'kithaab' => 'किताब',
'pithaa' => 'पिता'
'kitaab' => 'किताब',
'pitaa' => 'पिता'
}
list.each do |pattern, expected|
# TODO assert length of result array too
Expand Down

0 comments on commit d5e47f8

Please sign in to comment.