Add test for unicode
This commit is contained in:
parent
0840c136b9
commit
2060315f6a
|
@ -140,6 +140,9 @@ module.exports = {
|
||||||
testStringQueries: function() {
|
testStringQueries: function() {
|
||||||
runQuerySuite(testCases.stringTests);
|
runQuerySuite(testCases.stringTests);
|
||||||
},
|
},
|
||||||
|
testUnicodeStringQueries: function() {
|
||||||
|
runQuerySuite(testCases.unicodeStringTests);
|
||||||
|
},
|
||||||
testBinaryQueries: function() {
|
testBinaryQueries: function() {
|
||||||
runQuerySuite(testCases.binaryTests);
|
runQuerySuite(testCases.binaryTests);
|
||||||
},
|
},
|
||||||
|
@ -154,5 +157,6 @@ module.exports = {
|
||||||
},
|
},
|
||||||
testOptionalQueries: function() {
|
testOptionalQueries: function() {
|
||||||
runQuerySuite(testCases.optionalTests);
|
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" : {
|
"binaryTests" : {
|
||||||
"schema" : [{
|
"schema" : [{
|
||||||
"name": "BinaryObject",
|
"name": "BinaryObject",
|
||||||
|
|
Loading…
Reference in New Issue