MCPcopy Create free account
hub / github.com/ExtendDB/extenddb / unicode_string_values

Function unicode_string_values

tests/rust/src/unicode.rs:80–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79#[tokio::test]
80async fn unicode_string_values() {
81 let c = client();
82 let name = create_simple_table(c).await;
83 let mut item = HashMap::new();
84 item.insert("pk".into(), s("k1"));
85 item.insert("val".into(), s("日本語テスト"));
86 c.put_item()
87 .table_name(&name)
88 .set_item(Some(item))
89 .send()
90 .await
91 .unwrap();
92 let resp = c
93 .get_item()
94 .table_name(&name)
95 .key("pk", s("k1"))
96 .consistent_read(true)
97 .send()
98 .await
99 .unwrap();
100 assert_eq!(resp.item().unwrap().get("val").unwrap(), &s("日本語テスト"));
101}
102
103#[tokio::test]
104async fn emoji() {

Callers

nothing calls this directly

Calls 7

clientFunction · 0.85
sFunction · 0.85
insertMethod · 0.80
table_nameMethod · 0.80
put_itemMethod · 0.80
get_itemMethod · 0.80
create_simple_tableFunction · 0.70

Tested by

no test coverage detected