1# frozen_string_literal: true 2 3include Literal::Types 4 5test "===" do 6 assert _String(_Interface(:to_s)) === "string" 7 assert _String(size: 6) === "string" 8 9 refute _String(_Interface(:non_existing_method)) === "string" 10 refute _String(size: 5) === "string" 11end