From e7e8a7d8358791115034179cede5447d2744f47e Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Sat, 24 Sep 2016 17:19:32 +0200 Subject: [PATCH] Tests for .m heuristic rules --- test/test_heuristics.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/test_heuristics.rb b/test/test_heuristics.rb index 62e5a050..5e677e27 100644 --- a/test/test_heuristics.rb +++ b/test/test_heuristics.rb @@ -145,6 +145,18 @@ class TestHeuristcs < Minitest::Test }) end + def test_m_by_heuristics + assert_heuristics({ + "Objective-C" => all_fixtures("Objective-C", "*.m"), + "Mercury" => all_fixtures("Mercury", "*.m"), + "MUF" => all_fixtures("MUF", "*.m"), + "M" => all_fixtures("M", "MDB.m"), + "Mathematica" => all_fixtures("Mathematica", "*.m") - all_fixtures("Mathematica", "Problem12.m"), + "Matlab" => all_fixtures("Matlab", "create_ieee_paper_plots.m"), + "Limbo" => all_fixtures("Limbo", "*.m") + }) + end + # Candidate languages = ["C++", "Objective-C"] def test_obj_c_by_heuristics # Only calling out '.h' filenames as these are the ones causing issues