Add test for unicode
This commit is contained in:
parent
0840c136b9
commit
2060315f6a
|
@ -140,6 +140,9 @@ module.exports = {
|
|||
testStringQueries: function() {
|
||||
runQuerySuite(testCases.stringTests);
|
||||
},
|
||||
testUnicodeStringQueries: function() {
|
||||
runQuerySuite(testCases.unicodeStringTests);
|
||||
},
|
||||
testBinaryQueries: function() {
|
||||
runQuerySuite(testCases.binaryTests);
|
||||
},
|
||||
|
@ -154,5 +157,6 @@ module.exports = {
|
|||
},
|
||||
testOptionalQueries: function() {
|
||||
runQuerySuite(testCases.optionalTests);
|
||||
}
|
||||
},
|
||||
|
||||
};
|
||||
|
|
|
@ -204,6 +204,21 @@
|
|||
]
|
||||
},
|
||||
|
||||
"unicodeStringTests" : {
|
||||
"schema" : [{
|
||||
"name": "StringObject",
|
||||
"properties": [{ "name": "stringCol", "type": "string" }]
|
||||
}],
|
||||
"objects": [
|
||||
{ "type": "StringObject", "value": ["паркова"] },
|
||||
{ "type": "StringObject", "value": ["Паркова"] }
|
||||
],
|
||||
"tests": [
|
||||
["QueryCount", 2, "StringObject", "stringCol CONTAINS[c] 'паркова'"],
|
||||
["QueryCount", 2, "StringObject", "stringCol CONTAINS[c] 'Паркова'"]
|
||||
]
|
||||
},
|
||||
|
||||
"binaryTests" : {
|
||||
"schema" : [{
|
||||
"name": "BinaryObject",
|
||||
|
|
Loading…
Reference in New Issue