mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-30 11:44:27 +01:00
Merge pull request #476 from art-of-dom/module-char-scrub
sub in '_' for '-' in define and test name in module generator
This commit is contained in:
@@ -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");
|
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[:boilerplate]}\n" % [file[:name]]) unless file[:boilerplate].nil?
|
||||||
f.write(file[:template] % [file[:name],
|
f.write(file[:template] % [file[:name],
|
||||||
file[:includes].map { |ff| "#include \"#{ff}\"\n" }.join,
|
file[:includes].map { |ff| "#include \"#{ff}\"\n" }.join,
|
||||||
file[:name].upcase])
|
file[:name].upcase.gsub(/-/, '_'),
|
||||||
|
file[:name].gsub(/-/, '_')])
|
||||||
end
|
end
|
||||||
if @options[:update_svn]
|
if @options[:update_svn]
|
||||||
`svn add \"#{file[:path]}\"`
|
`svn add \"#{file[:path]}\"`
|
||||||
|
|||||||
Reference in New Issue
Block a user