Skip to content

Commit

Permalink
sub in '_' for '-' in define and test name in module generator
Browse files Browse the repository at this point in the history
  • Loading branch information
art-of-dom committed Dec 26, 2019
1 parent e449210 commit 3b5b491
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions auto/generate_module.rb
Expand Up @@ -25,7 +25,7 @@
{
}
void test_%1$s_NeedToImplement(void)
void test_%4$s_NeedToImplement(void)
{
TEST_IGNORE_MESSAGE("Need to Implement %1$s");
}
Expand Down Expand Up @@ -208,7 +208,8 @@ def generate(module_name, pattern = nil)
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]}\"`
Expand Down

0 comments on commit 3b5b491

Please sign in to comment.