class Chars < Formula desc "Command-line tool to display information about unicode characters" homepage "https://github.com/antifuchs/chars/" url "https://github.com/antifuchs/chars/archive/v0.5.0.tar.gz" sha256 "5e2807b32bd75862d8b155fa774db26b649529b62da26a74e817bec5a26e1d7c" license "MIT" head "https://github.com/antifuchs/chars.git" bottle do rebuild 1 sha256 cellar: :any_skip_relocation, arm64_big_sur: "ae5975ad693a89f4d3c82809ba33f27d9387f7da07afaade8488d4d01e6460a6" sha256 cellar: :any_skip_relocation, big_sur: "7bf84510e842b1887ff71b0bb040954208fc3e190c6c184f7ee9d8fd3053cb8a" sha256 cellar: :any_skip_relocation, catalina: "66d0f3de7a9eede7244c30cf630a6491db948abffed597c5754a9a23cdcd5931" sha256 cellar: :any_skip_relocation, mojave: "9cee1f2bff403ab54515841d52575702ae2cd080a21bca940a0b99dafe0e20c1" end depends_on "rust" => :build def install cd "chars" do system "cargo", "install", *std_cargo_args end end test do output = shell_output "#{bin}/chars 1C" assert_match "Control character", output assert_match "FS", output assert_match "File Separator", output end end