Skip to content

Commit

Permalink
Merge pull request #23 from stscoundrel/fix/letter-oe
Browse files Browse the repository at this point in the history
Fix/letter oe
  • Loading branch information
stscoundrel authored Nov 21, 2022
2 parents 88766ca + 7c23422 commit 4769196
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions elderfuthark/elderfuthark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
)

func TestTransformsLettersToRunes(t *testing.T) {
const content = "aábcdðeéfghiíjklmnŋoópqrstþuúvwxyýzåäæöøǫþ"
const expected = "ᚨᚨᛒᚲᛞᚦᛖᛖᚠᚷᚻᛁᛁᛃᚲᛚᛗᚾᛜᛟᛟᛈᚲᚱᛋᛏᚦᚢᚢᚹᚹᛋᛁᛁᛉᛟᛇᛇᚢᚢᛟᚦ"
const content = "aábcdðeéfghiíjklmnŋoópqrstþuúvwxyýzåäæœöøǫþ"
const expected = "ᚨᚨᛒᚲᛞᚦᛖᛖᚠᚷᚻᛁᛁᛃᚲᛚᛗᚾᛜᛟᛟᛈᚲᚱᛋᛏᚦᚢᚢᚹᚹᛋᛁᛁᛉᛟᛇᛇᛟᚢᚢᛟᚦ"
result := LettersToRunes(content)

if result != expected {
Expand Down
1 change: 1 addition & 0 deletions elderfuthark/letters.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func getLetterMapping() map[string]string {
"å": "ᛟ",
"ä": "ᛇ",
"æ": "ᛇ",
"œ": "ᛟ",
"ö": "ᚢ",
"ø": "ᚢ",
"þ": "ᚦ",
Expand Down
1 change: 1 addition & 0 deletions stavelessfuthark/letters.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func getLetterMapping() map[string]string {
"å": "ˎ",
"ä": "⸝",
"æ": "⸝",
"œ": "ˎ",
"ö": "ˎ",
"ø": "ˎ",
"ǫ": "ˎ",
Expand Down
4 changes: 2 additions & 2 deletions stavelessfuthark/stavelessfuthark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
)

func TestTransformsLettersToRunes(t *testing.T) {
const content = "aábcdðeéfghiíjklmnoópqrRstþuúvwxyýzåäæöøǫþ "
const expected = "⸝⸝ˏ╵⸍וᛁᛁᛙᛍᚽᛁᛁᛁᛍ⸌⠃⸜ˎˎˏᛍ◟◟╵⸍ו╮╮╮╮╵╮╮╵ˎ⸝⸝ˎˎˎו:"
const content = "aábcdðeéfghiíjklmnoópqrRstþuúvwxyýzåäæœöøǫþ "
const expected = "⸝⸝ˏ╵⸍וᛁᛁᛙᛍᚽᛁᛁᛁᛍ⸌⠃⸜ˎˎˏᛍ◟◟╵⸍ו╮╮╮╮╵╮╮╵ˎ⸝⸝ˎˎˎˎו:"
result := LettersToRunes(content)

if result != expected {
Expand Down
2 changes: 2 additions & 0 deletions youngerfuthark/letters.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func getLettersToLongBranchRunesMapping() map[string]string {
"å": "ᚢ",
"ä": "ᛅ",
"æ": "ᛅ",
"œ": "ᚢ",
"ö": "ᚢ",
"ø": "ᚢ",
"ǫ": "ᚢ",
Expand Down Expand Up @@ -85,6 +86,7 @@ func getLettersToShortTwigRunesMapping() map[string]string {
"å": "ᚢ",
"ä": "ᛆ",
"æ": "ᛆ",
"œ": "ᚢ",
"ö": "ᚢ",
"ø": "ᚢ",
"ǫ": "ᚢ",
Expand Down
12 changes: 6 additions & 6 deletions youngerfuthark/youngerfuthark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
)

func TestDefaultTransformLettersToRunes(t *testing.T) {
const content = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæöøǫþ"
const expected = "ᛅᛅᛒᛋᛏᚦᛁᛁᚠᚴᚼᛁᛁᛁᚴᛚᛘᚾᚢᚢᛒᚴᚱᛋᛏᚦᚢᚢᚢᚢᛋᚢᚢᛋᚢᛅᛅᚢᚢᚢᚦ"
const content = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæœöøǫþ"
const expected = "ᛅᛅᛒᛋᛏᚦᛁᛁᚠᚴᚼᛁᛁᛁᚴᛚᛘᚾᚢᚢᛒᚴᚱᛋᛏᚦᚢᚢᚢᚢᛋᚢᚢᛋᚢᛅᛅᚢᚢᚢᚢᚦ"
result := LettersToRunes(content)

if result != expected {
Expand All @@ -15,8 +15,8 @@ func TestDefaultTransformLettersToRunes(t *testing.T) {
}

func TestTransformsLettersToLongBranchRunes(t *testing.T) {
const content = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæöøǫþ"
const expected = "ᛅᛅᛒᛋᛏᚦᛁᛁᚠᚴᚼᛁᛁᛁᚴᛚᛘᚾᚢᚢᛒᚴᚱᛋᛏᚦᚢᚢᚢᚢᛋᚢᚢᛋᚢᛅᛅᚢᚢᚢᚦ"
const content = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæœöøǫþ"
const expected = "ᛅᛅᛒᛋᛏᚦᛁᛁᚠᚴᚼᛁᛁᛁᚴᛚᛘᚾᚢᚢᛒᚴᚱᛋᛏᚦᚢᚢᚢᚢᛋᚢᚢᛋᚢᛅᛅᚢᚢᚢᚢᚦ"
result := LettersToLongBranchRunes(content)

if result != expected {
Expand All @@ -25,8 +25,8 @@ func TestTransformsLettersToLongBranchRunes(t *testing.T) {
}

func TestTransformsLettersToShortTwigRunes(t *testing.T) {
const content = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæöøǫþ"
const expected = "ᛆᛆᛒᛌᛐᚦᛁᛁᚠᚴᚽᛁᛁᛁᚴᛚᛘᚿᚢᚢᛒᚴᚱᛌᛐᚦᚢᚢᚢᚢᛌᚢᚢᛌᚢᛆᛆᚢᚢᚢᚦ"
const content = "aábcdðeéfghiíjklmnoópqrstþuúvwxyýzåäæœöøǫþ"
const expected = "ᛆᛆᛒᛌᛐᚦᛁᛁᚠᚴᚽᛁᛁᛁᚴᛚᛘᚿᚢᚢᛒᚴᚱᛌᛐᚦᚢᚢᚢᚢᛌᚢᚢᛌᚢᛆᛆᚢᚢᚢᚢᚦ"
result := LettersToShortTwigRunes(content)

if result != expected {
Expand Down

0 comments on commit 4769196

Please sign in to comment.