-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See #18. Beautify most of the expected tests.
I was unable to do Python and SQL, as I am having Python problems on my laptop. Hopefully I will be able to figure this out soon.
- Loading branch information
Showing
31 changed files
with
1,307 additions
and
1,309 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
class Example | ||
{ | ||
|
||
Example() | ||
: member(0) | ||
{} | ||
Example() | ||
: member(0) | ||
{ | ||
} | ||
|
||
int member; | ||
int member; | ||
|
||
}; |
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 |
---|---|---|
@@ -1,113 +1,113 @@ | ||
class X : Y { | ||
bool Method (int argument_1, int argument_2) | ||
{ | ||
#region something | ||
int foo = 0; | ||
#endregion | ||
|
||
if (argument_1 == argument_2) | ||
throw new Exception (Locale.GetText ("They are equal!")); | ||
|
||
if (argument_1 < argument_2) { | ||
if (argument_1 * 3 > 4) | ||
return true; | ||
else | ||
return false; | ||
} | ||
#region something | ||
int foo = 0; | ||
#endregion | ||
|
||
if (argument_1 == argument_2) | ||
throw new Exception (Locale.GetText ("They are equal!")); | ||
|
||
if (argument_1 < argument_2) { | ||
if (argument_1 * 3 > 4) | ||
return true; | ||
else | ||
return false; | ||
} | ||
|
||
// | ||
// This sample helps keep your sanity while using 8-spaces for tabs | ||
// | ||
VeryLongIdentifierWhichTakesManyArguments ( | ||
Argument1, | ||
Argument2, Argument3, | ||
NestedCallHere ( | ||
MoreNested)); | ||
VeryLongIdentifierWhichTakesManyArguments ( | ||
Argument1, | ||
Argument2, Argument3, | ||
NestedCallHere ( | ||
MoreNested)); | ||
} | ||
|
||
bool MyProperty { | ||
get { return x; } | ||
get { return x; } | ||
|
||
set { x = value; } | ||
set { x = value; } | ||
} | ||
|
||
void AnotherMethod () | ||
{ | ||
Logger log = new Logger(); | ||
log.foo.bar = 5; | ||
log.narf.sweat = "cat"; | ||
Logger log = new Logger(); | ||
log.foo.bar = 5; | ||
log.narf.sweat = "cat"; | ||
|
||
if ((a + 5) != 4) { | ||
} | ||
if ((a + 5) != 4) { | ||
} | ||
|
||
while (blah) { | ||
if (a) | ||
continue; | ||
b++; | ||
} | ||
while (blah) { | ||
if (a) | ||
continue; | ||
b++; | ||
} | ||
} | ||
} | ||
|
||
object lockA; | ||
object lockB; | ||
|
||
void Foo () { | ||
lock (lockA) { | ||
lock (lockB) { | ||
} | ||
} | ||
lock (lockA) { | ||
lock (lockB) { | ||
} | ||
} | ||
} | ||
|
||
void Bar () { | ||
lock (lockB) { | ||
lock (lockA) { | ||
} | ||
} | ||
lock (lockB) { | ||
lock (lockA) { | ||
} | ||
} | ||
} | ||
|
||
|
||
// class library | ||
class Blah { | ||
Hashtable ht; | ||
void Foo (int zzz, Entry blah) { | ||
lock (ht) { | ||
ht.Add (zzz, blah); | ||
} | ||
} | ||
|
||
void Bar () | ||
{ | ||
lock (ht) { | ||
foreach (Entry e in ht) | ||
EachBar (e); | ||
} | ||
} | ||
|
||
virtual void EachBar (Entry e) | ||
{ | ||
} | ||
Hashtable ht; | ||
void Foo (int zzz, Entry blah) { | ||
lock (ht) { | ||
ht.Add (zzz, blah); | ||
} | ||
} | ||
|
||
void Bar () | ||
{ | ||
lock (ht) { | ||
foreach (Entry e in ht) | ||
EachBar (e); | ||
} | ||
} | ||
|
||
virtual void EachBar (Entry e) | ||
{ | ||
} | ||
} | ||
|
||
// User | ||
class MyBlah { | ||
byte[] box = new byte[6]; | ||
byte[] box = new byte[6]; | ||
|
||
box[2] = 56; | ||
box[2] = 56; | ||
|
||
void DoStuff () | ||
{ | ||
lock (this) { | ||
int i = GetNumber (); | ||
Entry e = GetEntry (); | ||
void DoStuff () | ||
{ | ||
lock (this) { | ||
int i = GetNumber (); | ||
Entry e = GetEntry (); | ||
|
||
Foo (i, e); | ||
} | ||
} | ||
Foo (i, e); | ||
} | ||
} | ||
|
||
override void EachBar (Entry e) | ||
{ | ||
override void EachBar (Entry e) | ||
{ | ||
lock (this) { | ||
DoSomething (e); | ||
DoSomething (e); | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
p { | ||
color: red; | ||
color: red; | ||
} |
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 |
---|---|---|
@@ -1,35 +1,35 @@ | ||
class Aligns { | ||
final int SZF = 4; | ||
final int SZ2F = 4; | ||
final int aBarF; | ||
final int someIntsF[]; | ||
final int someIntsSzdF[4]; | ||
final int[] someMoreIntsF; | ||
final int lotsOfIntsF[][][][][][]; | ||
final int[][][][] lotsMoreIntsF; | ||
final Tem<Plate> edVarF; | ||
final int aBarSetF=null; | ||
final int someIntsSetF[]=null; | ||
final int someIntsSzdSetF[4]=null; | ||
final int[] someMoreIntsSetF=null; | ||
final int lotsOfIntsSetF[][][][][][]=null; | ||
final int[][][][] lotsMoreIntsSetF=null; | ||
final Tem<Plate> edVarF=null; | ||
int SZ = 4; | ||
int SZ2 = 4; | ||
int aBar; | ||
int someInts[]; | ||
int someIntsSzd[4]; | ||
int spacer; | ||
int[] someMoreInts; | ||
int lotsOfInts[][][][][][]; | ||
int[][][][] lotsMoreInts; | ||
Tem<Plate> edVar; | ||
int aBarSet=null; | ||
int someIntsSet[]=null; | ||
int someIntsSzdSet[4]=null; | ||
int[] someMoreIntsSet=null; | ||
int lotsOfIntsSet[][][][][][]=null; | ||
int[][][][] lotsMoreIntsSet=null; | ||
Tem<Plate> edVar=null; | ||
final int SZF = 4; | ||
final int SZ2F = 4; | ||
final int aBarF; | ||
final int someIntsF[]; | ||
final int someIntsSzdF[4]; | ||
final int[] someMoreIntsF; | ||
final int lotsOfIntsF[][][][][][]; | ||
final int[][][][] lotsMoreIntsF; | ||
final Tem<Plate> edVarF; | ||
final int aBarSetF=null; | ||
final int someIntsSetF[]=null; | ||
final int someIntsSzdSetF[4]=null; | ||
final int[] someMoreIntsSetF=null; | ||
final int lotsOfIntsSetF[][][][][][]=null; | ||
final int[][][][] lotsMoreIntsSetF=null; | ||
final Tem<Plate> edVarF=null; | ||
int SZ = 4; | ||
int SZ2 = 4; | ||
int aBar; | ||
int someInts[]; | ||
int someIntsSzd[4]; | ||
int spacer; | ||
int[] someMoreInts; | ||
int lotsOfInts[][][][][][]; | ||
int[][][][] lotsMoreInts; | ||
Tem<Plate> edVar; | ||
int aBarSet=null; | ||
int someIntsSet[]=null; | ||
int someIntsSzdSet[4]=null; | ||
int[] someMoreIntsSet=null; | ||
int lotsOfIntsSet[][][][][][]=null; | ||
int[][][][] lotsMoreIntsSet=null; | ||
Tem<Plate> edVar=null; | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
function hell() { | ||
console.log('world'); | ||
console.log('world'); | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
- item | ||
1. one | ||
2. two | ||
3. three | ||
- item | ||
1. one | ||
2. two | ||
3. three |
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
Oops, something went wrong.