<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>buty4649</author_name>
  <author_url>https://blog.hatena.ne.jp/buty4649/</author_url>
  <blog_title>ぶていのログでぶログ</blog_title>
  <blog_url>https://tech.buty4649.net/</blog_url>
  <categories>
    <anon>Rust</anon>
    <anon>Ruby</anon>
  </categories>
  <description>before/after cargo testで大きめの構造体をassertすると↑のbefore画像みたいにとても長い出力になる。 長すぎてどこに差分があるかわからなくてとても苦労する。 そこで、afterのように色をつけるスクリプトを作ってみた。 #!/usr/bin/env ruby require 'tempfile' while line = gets unless line.start_with?(&quot; left:&quot;) puts line next end left = Tempfile.open(&quot;color-assert-left&quot;) {|fp| fp.puts line; fp…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.buty4649.net%2Fentry%2F2022%2F06%2F17%2F183046&quot; title=&quot;Rust: assertの出力に色を付ける - ぶていのログでぶログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/b/buty4649/20220617/20220617181333.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-06-17 18:30:46</published>
  <title>Rust: assertの出力に色を付ける</title>
  <type>rich</type>
  <url>https://tech.buty4649.net/entry/2022/06/17/183046</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
