{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.buty4649.net%2Fentry%2F2022%2F06%2F17%2F183046\" title=\"Rust: assert\u306e\u51fa\u529b\u306b\u8272\u3092\u4ed8\u3051\u308b - \u3076\u3066\u3044\u306e\u30ed\u30b0\u3067\u3076\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Rust: assert\u306e\u51fa\u529b\u306b\u8272\u3092\u4ed8\u3051\u308b","provider_name":"Hatena Blog","width":"100%","description":"before/after cargo test\u3067\u5927\u304d\u3081\u306e\u69cb\u9020\u4f53\u3092assert\u3059\u308b\u3068\u2191\u306ebefore\u753b\u50cf\u307f\u305f\u3044\u306b\u3068\u3066\u3082\u9577\u3044\u51fa\u529b\u306b\u306a\u308b\u3002 \u9577\u3059\u304e\u3066\u3069\u3053\u306b\u5dee\u5206\u304c\u3042\u308b\u304b\u308f\u304b\u3089\u306a\u304f\u3066\u3068\u3066\u3082\u82e6\u52b4\u3059\u308b\u3002 \u305d\u3053\u3067\u3001after\u306e\u3088\u3046\u306b\u8272\u3092\u3064\u3051\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u3063\u3066\u307f\u305f\u3002 #!/usr/bin/env ruby require 'tempfile' while line = gets unless line.start_with?(\" left:\") puts line next end left = Tempfile.open(\"color-assert-left\") {|fp| fp.puts line; fp\u2026","type":"rich","author_name":"buty4649","height":"190","categories":["Rust","Ruby"],"published":"2022-06-17 18:30:46","version":"1.0","blog_title":"\u3076\u3066\u3044\u306e\u30ed\u30b0\u3067\u3076\u30ed\u30b0","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/buty4649/20220617/20220617181333.png","author_url":"https://blog.hatena.ne.jp/buty4649/","blog_url":"https://tech.buty4649.net/","provider_url":"https://hatena.blog","url":"https://tech.buty4649.net/entry/2022/06/17/183046"}