Streaming Lists


StreamData Property Testing

Use an Enum function to stream data from a list.

  property "RuPay" do
    check all(fragment <- StreamData.member_of(Enum.take([60, 81, 82, 508, 353, 356], 6))) do
      assert SimpleCardBrand.card_brand(Integer.to_string(fragment), 16) == {:ok, :rupay}
    end
  end