Skip to content

Commit

Permalink
Fix windows unittest formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladiwostok committed Oct 9, 2024
1 parent 17f7bce commit f94a9bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dscanner/analysis/function_attributes.d
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ unittest
StaticAnalysisConfig sac = disabledConfig();
sac.function_attribute_check = Check.enabled;

assertAnalyzerWarningsDMD(q{
assertAnalyzerWarningsDMD(`{
int foo() @property { return 0; }
class ClassName {
Expand Down Expand Up @@ -190,10 +190,10 @@ unittest
int barConst() const @property;
abstract int method(); // [warn]: 'abstract' attribute is redundant in interface declarations
}
}c, sac);
}`, sac);

// Test taken from phobos / utf.d, shouldn't warn
assertAnalyzerWarningsDMD(q{
assertAnalyzerWarningsDMD(`{
static struct R
{
@safe pure @nogc nothrow:
Expand All @@ -204,7 +204,7 @@ unittest
size_t idx;
string s;
}
}c, sac);
}`, sac);

/* TODO: Fix AutoFix
assertAutoFix(q{
Expand Down

0 comments on commit f94a9bc

Please sign in to comment.