Add test for unicode

This commit is contained in:
kristiandupont 2017-02-15 13:55:07 +01:00
parent 0840c136b9
commit 2060315f6a
2 changed files with 20 additions and 1 deletions

View File

@ -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);
}
},
};

View File

@ -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",