sub in '_' for '-' in define and test name in module generator

This commit is contained in:
Dom Postorivo
2019-12-26 01:10:09 -05:00
parent e449210977
commit 3b5b491860
+3 -2
View File
@@ -25,7 +25,7 @@ void tearDown(void)
{
}
void test_%1$s_NeedToImplement(void)
void test_%4$s_NeedToImplement(void)
{
TEST_IGNORE_MESSAGE("Need to Implement %1$s");
}
@@ -208,7 +208,8 @@ class UnityModuleGenerator
f.write("#{file[:boilerplate]}\n" % [file[:name]]) unless file[:boilerplate].nil?
f.write(file[:template] % [file[:name],
file[:includes].map { |ff| "#include \"#{ff}\"\n" }.join,
file[:name].upcase])
file[:name].upcase.gsub(/-/, '_'),
file[:name].gsub(/-/, '_')])
end
if @options[:update_svn]
`svn add \"#{file[:path]}\"`