Skip to content

Commit

Permalink
add test for bug fix in #1
Browse files Browse the repository at this point in the history
  • Loading branch information
brodycj committed Jan 9, 2022
1 parent aa6019f commit f6a5892
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ int main() {
sqlite3_exec(db, "SELECT LOWER_EU('DE100 😊 Chris DEF 😊 ẞ 😊 Á 😊 Γ‰ 😊 €456')",
assert_result_matches, "de100 😊 chris def 😊 ß 😊 Γ‘ 😊 Γ© 😊 €456", NULL);

// test for brodybits/sqlite3-eu#1
// ref:
// - https://github.com/brodybits/sqlite3-eu/pull/1
// - https://github.com/mobilexag/cordova-sqlite-evplus-ext-free/issues/34
TESTLOG("TRY SELECT UPPER_EU with mixed string - test brodybits/sqlite3-eu#1 (PR #1)");
sqlite3_exec(db, "SELECT UPPER_EU('Δ‘ ď Γ° abc')",
assert_result_matches, "Đ Ď Ð ABC", NULL);

// TBD STRANGE RESULT for this operation:
TESTLOG("SELECT LOWER_EU(9e999)");
sqlite3_exec(db, "SELECT LOWER_EU(9e999)",
Expand Down

0 comments on commit f6a5892

Please sign in to comment.