Skip to content

Commit 73197df

Browse files
committed
add more unit tests
1 parent 1465896 commit 73197df

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/sql/bind.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,17 @@ mod tests {
6464
"`foo`.`bar baz`"
6565
);
6666
assert_eq!(bind_to_string(ScopedIdentifier("", "bar baz")), "`bar baz`");
67+
68+
assert_eq!(
69+
bind_to_string(ScopedIdentifier("`'.", ".................````")),
70+
"`\\`\\'.`.`.................\\`\\`\\`\\``"
71+
);
72+
73+
assert_eq!(
74+
bind_to_string(ScopedIdentifier("クリック", "ハウス")),
75+
"`クリック`.`ハウス`"
76+
);
77+
78+
assert_eq!(bind_to_string(ScopedIdentifier(" ", " ")), "` `.` `");
6779
}
6880
}

0 commit comments

Comments
 (0)