-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
296 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
unittest | ||
{ | ||
{ | ||
bool anotherTemplatedFunction(One, Two, Three)(One alpha, Two bravo, | ||
Three charlie, double delta) | ||
{ | ||
if (isNumeric!One && isNumeric!Two && isNumeric!Three && echo | ||
&& foxtrot && golf && hotel && india && juliet) | ||
{ | ||
} | ||
} | ||
} | ||
} | ||
|
||
void f() | ||
{ | ||
string a = "foo" | ||
~ "bar" /* bar */ | ||
~ "baz"; | ||
} | ||
|
||
unittest | ||
{ | ||
if (a) | ||
{ | ||
while (sBraceDepth == 0 && indents.topIsTemp() | ||
&& ((indents.top != tok!"if" && indents.top != tok!"version") | ||
|| !peekIs(tok!"else"))) | ||
a(); | ||
} | ||
} | ||
|
||
unittest | ||
{ | ||
callFunc({ int i = 10; return i; }); | ||
callFunc({ | ||
int i = 10; | ||
foo(alpha, bravo, charlie, delta, echo, foxtrot, golf, echo); | ||
doStuff(withThings, andOtherStuff); | ||
return i; | ||
}); | ||
callFunc({ | ||
int i = 10; | ||
foo(alpha_longVarName, bravo_longVarName, charlie_longVarName, delta_longVarName, | ||
echo_longVarName, foxtrot_longVarName, golf_longVarName, echo_longVarName); | ||
doStuff(withThings, andOtherStuff); | ||
return i; | ||
}, more_stuff); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
unittest | ||
{ | ||
{ | ||
bool anotherTemplatedFunction(One, Two, Three)(One alpha, Two bravo, | ||
Three charlie, double delta) | ||
{ | ||
if (isNumeric!One && isNumeric!Two && isNumeric!Three && echo | ||
&& foxtrot && golf && hotel && india && juliet) | ||
{ | ||
} | ||
} | ||
} | ||
} | ||
|
||
unittest | ||
{ | ||
if (a) | ||
{ | ||
while (sBraceDepth == 0 && indents.topIsTemp() | ||
&& ((indents.top != tok!"if" && indents.top != tok!"version") || !peekIs(tok!"else"))) | ||
a(); | ||
} | ||
} | ||
|
||
unittest | ||
{ | ||
callFunc({ int i = 10; return i; }); | ||
callFunc({ | ||
int i = 10; | ||
foo(alpha, bravo, charlie, delta, echo, foxtrot, golf, echo); | ||
doStuff(withThings, andOtherStuff); | ||
return i; | ||
}); | ||
callFunc({ | ||
int i = 10; | ||
foo(alpha_longVarName, bravo_longVarName, charlie_longVarName, delta_longVarName, | ||
echo_longVarName, foxtrot_longVarName, golf_longVarName, echo_longVarName); | ||
doStuff(withThings, andOtherStuff); | ||
return i; | ||
}, more_stuff); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--single_indent true | ||
--keep_line_breaks true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
unittest | ||
{ | ||
{ | ||
bool anotherTemplatedFunction(One, Two, Three)(One alpha, Two bravo, | ||
Three charlie, double delta) | ||
{ | ||
if (isNumeric!One && isNumeric!Two && isNumeric!Three && echo | ||
&& foxtrot && golf && hotel && india && juliet) | ||
{ | ||
} | ||
} | ||
} | ||
} | ||
|
||
void f() | ||
{ | ||
string a = "foo" | ||
~ "bar" /* bar */ | ||
~ "baz"; | ||
} | ||
|
||
unittest | ||
{ | ||
if (a) | ||
{ | ||
while (sBraceDepth == 0 && indents.topIsTemp() | ||
&& ((indents.top != tok!"if" && indents.top != tok!"version") | ||
|| !peekIs(tok!"else"))) | ||
a(); | ||
} | ||
} | ||
|
||
unittest | ||
{ | ||
callFunc({ int i = 10; return i; }); | ||
callFunc({ | ||
int i = 10; | ||
foo(alpha, bravo, charlie, delta, echo, foxtrot, golf, echo); | ||
doStuff(withThings, andOtherStuff); | ||
return i; | ||
}); | ||
callFunc({ | ||
int i = 10; | ||
foo(alpha_longVarName, bravo_longVarName, charlie_longVarName, delta_longVarName, | ||
echo_longVarName, foxtrot_longVarName, golf_longVarName, echo_longVarName); | ||
doStuff(withThings, andOtherStuff); | ||
return i; | ||
}, more_stuff); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
unittest { | ||
{ | ||
bool anotherTemplatedFunction(One, Two, Three)(One alpha, Two bravo, | ||
Three charlie, double delta) { | ||
if (isNumeric!One && isNumeric!Two && isNumeric!Three && echo | ||
&& foxtrot && golf && hotel && india && juliet) { | ||
} | ||
} | ||
} | ||
} | ||
|
||
void f() { | ||
string a = "foo" | ||
~ "bar" /* bar */ | ||
~ "baz"; | ||
} | ||
|
||
unittest { | ||
if (a) { | ||
while (sBraceDepth == 0 && indents.topIsTemp() | ||
&& ((indents.top != tok!"if" && indents.top != tok!"version") | ||
|| !peekIs(tok!"else"))) | ||
a(); | ||
} | ||
} | ||
|
||
unittest { | ||
callFunc({ int i = 10; return i; }); | ||
callFunc({ | ||
int i = 10; | ||
foo(alpha, bravo, charlie, delta, echo, foxtrot, golf, echo); | ||
doStuff(withThings, andOtherStuff); | ||
return i; | ||
}); | ||
callFunc({ | ||
int i = 10; | ||
foo(alpha_longVarName, bravo_longVarName, charlie_longVarName, delta_longVarName, | ||
echo_longVarName, foxtrot_longVarName, golf_longVarName, echo_longVarName); | ||
doStuff(withThings, andOtherStuff); | ||
return i; | ||
}, more_stuff); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
unittest { | ||
{ | ||
bool anotherTemplatedFunction(One, Two, Three)(One alpha, Two bravo, | ||
Three charlie, double delta) { | ||
if (isNumeric!One && isNumeric!Two && isNumeric!Three && echo | ||
&& foxtrot && golf && hotel && india && juliet) { | ||
} | ||
} | ||
} | ||
} | ||
|
||
unittest { | ||
if (a) { | ||
while (sBraceDepth == 0 && indents.topIsTemp() | ||
&& ((indents.top != tok!"if" && indents.top != tok!"version") || !peekIs(tok!"else"))) | ||
a(); | ||
} | ||
} | ||
|
||
unittest { | ||
callFunc({ int i = 10; return i; }); | ||
callFunc({ | ||
int i = 10; | ||
foo(alpha, bravo, charlie, delta, echo, foxtrot, golf, echo); | ||
doStuff(withThings, andOtherStuff); | ||
return i; | ||
}); | ||
callFunc({ | ||
int i = 10; | ||
foo(alpha_longVarName, bravo_longVarName, charlie_longVarName, delta_longVarName, | ||
echo_longVarName, foxtrot_longVarName, golf_longVarName, echo_longVarName); | ||
doStuff(withThings, andOtherStuff); | ||
return i; | ||
}, more_stuff); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--single_indent true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
unittest | ||
{ | ||
{ | ||
bool anotherTemplatedFunction(One, Two, Three)(One alpha, Two bravo, | ||
Three charlie, double delta) | ||
{ | ||
if (isNumeric!One && isNumeric!Two && isNumeric!Three && echo | ||
&& foxtrot && golf && hotel && india && juliet) | ||
{ | ||
} | ||
} | ||
} | ||
} | ||
|
||
unittest | ||
{ | ||
if (a) | ||
{ | ||
while (sBraceDepth == 0 && indents.topIsTemp() | ||
&& ((indents.top != tok!"if" && indents.top != tok!"version") | ||
|| !peekIs(tok!"else"))) | ||
a(); | ||
} | ||
} | ||
|
||
unittest | ||
{ | ||
callFunc({ int i = 10; return i; }); | ||
callFunc({ | ||
int i = 10; | ||
foo(alpha, bravo, charlie, delta, echo, foxtrot, golf, echo); | ||
doStuff(withThings, andOtherStuff); | ||
return i; | ||
}); | ||
callFunc({ | ||
int i = 10; | ||
foo(alpha_longVarName, bravo_longVarName, charlie_longVarName, delta_longVarName, | ||
echo_longVarName, foxtrot_longVarName, golf_longVarName, echo_longVarName); | ||
doStuff(withThings, andOtherStuff); | ||
return i; | ||
}, more_stuff); | ||
} |