You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ffi-clang/spec/ffi/clang/version_spec.rb

15 lines
409 B
Ruby

# frozen_string_literal: true
# Released under the MIT License.
# Copyright, 2014, by Masahiro Sano.
# Copyright, 2014-2022, by Samuel Williams.
require 'ffi/clang/version'
describe FFI::Clang.clang_version_string do
it "returns a version string for showing to user" do
expect(subject).to be_kind_of(String)
expect(subject).to match(/Apple LLVM version \d+\.\d+\.\d+|clang version \d+\.\d+/)
end
end