class Ired < Formula desc "Minimalistic hexadecimal editor designed to be used in scripts" homepage "https://github.com/radare/ired" url "https://github.com/radare/ired/archive/0.6.tar.gz" sha256 "c15d37b96b1a25c44435d824bd7ef1f9aea9dc191be14c78b689d3156312d58a" bottle do cellar :any_skip_relocation sha256 "e74475e811c38aa46bf3e7e69e0a264a2d30c08cfcbd801433e03c14944b8366" => :catalina sha256 "7821d818af4c7d28b4cbf26c627685b77f18a1004369d4a57bee2582620008b7" => :mojave sha256 "f6af714455a74c02769c9726855a92832e43c37c79a0c589a0c7744beac8956c" => :high_sierra sha256 "5d10dfac87e4a4ca589a9fa76e8f9aff62625ef6358b6ab29360e79fe4a6dc35" => :sierra sha256 "4fc558225913b629b144661385841e63ebb167beb9900475fadb0c0e886b4997" => :el_capitan end def install system "make" system "make", "install", "PREFIX=#{prefix}" end test do input = <<~EOS w"hello wurld" s+7 r-4 w"orld" q EOS pipe_output("#{bin}/ired test.text", input) assert_equal "hello world", (testpath/"test.text").read.chomp end end