Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
edadma committed Apr 2, 2018
1 parent d3a24fa commit cffaf3d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/test/scala/ExamplesNoCompressed.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,43 @@ class ExamplesNoCompressed extends FreeSpec with PropertyChecks with Matchers {
""".trim.stripMargin
) shouldBe "Hello world!"
}
/*
void
out( char c ) {
*((char*) 0x20000) = c;
}
void
print( char* s ) {
while (*s)
out( *s++ );
out( '\n' );
}
int
signum( int n ) {
return n == 0 ? 0 : n < 0 ? -1 : 1;
}
void
prints( int n ) {
static char* signs[] = {
"negative",
"zero",
"positive"
};
print( signs[signum(n) + 1] );
}
void
main() {
prints( -5 );
prints( 0 );
prints( 200 );
}
*/
"signum" in {
Run(
"""
Expand Down

0 comments on commit cffaf3d

Please sign in to comment.