()
| 199 | |
| 200 | #[tokio::test] |
| 201 | async fn long_unicode_string() { |
| 202 | let c = client(); |
| 203 | let name = create_simple_table(c).await; |
| 204 | let val = "あ".repeat(1000); |
| 205 | let mut item = HashMap::new(); |
| 206 | item.insert("pk".into(), s("k1")); |
| 207 | item.insert("val".into(), s(&val)); |
| 208 | c.put_item() |
| 209 | .table_name(&name) |
| 210 | .set_item(Some(item)) |
| 211 | .send() |
| 212 | .await |
| 213 | .unwrap(); |
| 214 | let resp = c |
| 215 | .get_item() |
| 216 | .table_name(&name) |
| 217 | .key("pk", s("k1")) |
| 218 | .consistent_read(true) |
| 219 | .send() |
| 220 | .await |
| 221 | .unwrap(); |
| 222 | assert_eq!(resp.item().unwrap().get("val").unwrap(), &s(&val)); |
| 223 | } |
| 224 | |
| 225 | #[tokio::test] |
| 226 | async fn unicode_in_hash_key() { |
nothing calls this directly
no test coverage detected