[前][次][番号順一覧][スレッド一覧]

ruby-changes:65152

From: Nobuyoshi <ko1@a...>
Date: Fri, 5 Feb 2021 14:51:33 +0900 (JST)
Subject: [ruby-changes:65152] 7baedeffe9 (master): Added tests for MakeMakefile#test_egrep_cpp

https://git.ruby-lang.org/ruby.git/commit/?id=7baedeffe9

From 7baedeffe93dbb03c2e69129c3100596c1ff0e71 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 28 Jan 2021 21:00:37 +0900
Subject: Added tests for MakeMakefile#test_egrep_cpp

---
 test/mkmf/test_egrep_cpp.rb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 test/mkmf/test_egrep_cpp.rb

diff --git a/test/mkmf/test_egrep_cpp.rb b/test/mkmf/test_egrep_cpp.rb
new file mode 100644
index 0000000..ce276be
--- /dev/null
+++ b/test/mkmf/test_egrep_cpp.rb
@@ -0,0 +1,15 @@ https://github.com/ruby/ruby/blob/trunk/test/mkmf/test_egrep_cpp.rb#L1
+# frozen_string_literal: false
+require_relative 'base'
+require 'tempfile'
+
+class TestMkmf
+  class TestEgrepCpp < TestMkmf
+    def test_egrep_cpp
+      assert_equal(true, egrep_cpp(/ruby_init/, ""), MKMFLOG)
+    end
+
+    def test_not_have_func
+      assert_equal(false, egrep_cpp(/never match/, ""), MKMFLOG)
+    end
+  end
+end
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]