aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_mpi_requirement.rb
blob: e0f97e8eebe50ad2e6e89eca14e0696460cae1ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require "testing_env"
require "requirements/mpi_requirement"

class MPIRequirementTests < Homebrew::TestCase
  def test_initialize_untangles_tags_and_wrapper_symbols
    wrappers = [:cc, :cxx, :f77]
    tags = [:optional, "some-other-tag"]
    dep = MPIRequirement.new(*wrappers + tags)
    assert_equal wrappers, dep.lang_list
    assert_equal tags, dep.tags
  end
end