Real quick add unicode test to parser

This commit is contained in:
Sasha Koshka 2024-02-15 12:43:09 -05:00
parent 0684410631
commit 6dc958742b

View File

@ -0,0 +1,28 @@
package fsplParser
import "testing"
func TestUnicodeRussian (test *testing.T) {
testString (test,
// correct
`- Тип: Int
- [должностныеОбязанности]:Тип = 5`,
// input
`
Тип:Int
[должностныеОбязанности]:Тип = 5
`)
}
// this is how you know when a programming language is Good (tm)
func TestUnicodeBlackletter (test *testing.T) {
testString (test,
// correct
`- 𝔅𝖑𝔞𝖈𝔨𝖑𝔢𝖙𝔱𝖊𝔯𝕿𝔶𝖕𝔢𝕹𝔞𝖒𝔢: Int
- [𝔟𝖑𝔞𝖈𝔨𝖑𝔢𝖙𝔱𝖊𝔯𝕱𝔲𝖓𝔠𝖙𝔦𝖔𝔫𝕹𝔞𝖒𝔢]:𝔅𝖑𝔞𝖈𝔨𝖑𝔢𝖙𝔱𝖊𝔯𝕿𝔶𝖕𝔢𝕹𝔞𝖒𝔢 = 5`,
// input
`
𝔅𝖑𝔞𝖈𝔨𝖑𝔢𝖙𝔱𝖊𝔯𝕿𝔶𝖕𝔢𝕹𝔞𝖒𝔢:Int
[𝔟𝖑𝔞𝖈𝔨𝖑𝔢𝖙𝔱𝖊𝔯𝕱𝔲𝖓𝔠𝖙𝔦𝖔𝔫𝕹𝔞𝖒𝔢]:𝔅𝖑𝔞𝖈𝔨𝖑𝔢𝖙𝔱𝖊𝔯𝕿𝔶𝖕𝔢𝕹𝔞𝖒𝔢 = 5
`)
}