<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unageanu</author_name>
  <author_url>https://blog.hatena.ne.jp/unageanu/</author_url>
  <blog_title>うなの日記</blog_title>
  <blog_url>https://unageanu.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>雑記</anon>
  </categories>
  <description>昔教えたもらった話。 テストケースを作るときに、かけ算になっている組み合わせを探して、足し算になるように直すとテストパターンを減らすことができます。 例。かけ算になっている組み合わせ。 以下の機能を持つ関数があるとします。(ちょっと無理矢理っぽいですが。) 入力値a,bを受け取る。 入力値aを3で割ったあまり(a'とする)を取得し、 bが&quot;+&quot;なら、10 + a' を返す。 bが&quot;-&quot;なら、10 - a' を返す。 bが&quot;*&quot;なら、10 * a' を返す。 実装はこんな感じ。 public static int func( int a, String b ) { if ( &quot;+&quot;.equals…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20070928%2F1190994735&quot; title=&quot; テストパターンを減らすTips - うなの日記&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-09-28 00:52:15</published>
  <title> テストパターンを減らすTips</title>
  <type>rich</type>
  <url>https://unageanu.hatenablog.com/entry/20070928/1190994735</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
