Real quick add unicode test to parser
This commit is contained in:
parent
0684410631
commit
6dc958742b
28
parser/fspl/unicode_test.go
Normal file
28
parser/fspl/unicode_test.go
Normal 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
|
||||||
|
`)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user