blob: 95313583d3f315b3163c915126a0c42e8925d6f0 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
 | require 'testing_env'
require 'hardware'
class HardwareTests < Homebrew::TestCase
  def test_hardware_cpu_type
    assert_includes [:intel, :ppc], Hardware::CPU.type
  end
  def test_hardware_intel_family
    families = [:core, :core2, :penryn, :nehalem, :arrandale, :sandybridge, :ivybridge, :haswell, :broadwell]
    assert_includes families, Hardware::CPU.family
  end if Hardware::CPU.intel?
end
 |