</dd>
.*
</dl>
.*
"
),
);
}
#[test]
fn charm_nineball() {
let server = TestServer::new_with_regtest_with_index_sats();
server.mine_blocks(9);
let txid = server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(9, 0, 0, inscription("text/plain", "foo").to_witness())],
..Default::default()
});
let id = InscriptionId { txid, index: 0 };
server.mine_blocks(1);
server.assert_response_regex(
format!("/inscription/{id}"),
StatusCode::OK,
format!(
".*<h1>Inscription 0</h1>.*
<dl>
<dt>id</dt>
<dd class=monospace>{id}</dd>
<dt>charms</dt>
<dd>
<span title=uncommon>🌱</span>
<span title=nineball>9️⃣</span>
</dd>
.*
</dl>
.*
"
),
);
}
#[test]
fn charm_reinscription() {
let server = TestServer::new_with_regtest();
server.mine_blocks(1);
server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate {
inputs: &[(1, 0, 0, inscription("text/plain", "foo").to_witness())],