Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed Mar 24, 2015
1 parent 787ca67 commit 948431f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 29 deletions.
24 changes: 12 additions & 12 deletions lastfriday.out
@@ -1,12 +1,12 @@
2013-01-25
2013-02-22
2013-03-29
2013-04-26
2013-05-31
2013-06-28
2013-07-26
2013-08-30
2013-09-27
2013-10-25
2013-11-29
2013-12-27
2012-01-27
2012-02-24
2012-03-30
2012-04-27
2012-05-25
2012-06-29
2012-07-27
2012-08-31
2012-09-28
2012-10-26
2012-11-30
2012-12-28
24 changes: 12 additions & 12 deletions lastsunday.out
@@ -1,12 +1,12 @@
2012-01-29
2012-02-26
2012-03-25
2012-04-29
2012-05-27
2012-06-24
2012-07-29
2012-08-26
2012-09-30
2012-10-28
2012-11-25
2012-12-30
2013-01-27
2013-02-24
2013-03-31
2013-04-28
2013-05-26
2013-06-30
2013-07-28
2013-08-25
2013-09-29
2013-10-27
2013-11-24
2013-12-29
1 change: 0 additions & 1 deletion nim.cfg
@@ -1,2 +1 @@
warning[SmallLshouldNotBeUsed]=off
hints=off
2 changes: 1 addition & 1 deletion sortcomposite.nim
@@ -1,5 +1,5 @@
import algorithm, future

var people = @{"joe": 120, "foo": 31, "bar": 51}
sort(people, (x,y) => cmp(x[0], y[0]))
sort(people, (x: tuple, y: tuple) => cmp(x[0], y[0]))
echo people
6 changes: 3 additions & 3 deletions test_all.nim
Expand Up @@ -36,7 +36,7 @@ if compCommand == "":
compCommand = "nim c"

proc compiles(name: string; params = ""): bool =
execCmd(compCommand & " --verbosity:0 " & params & " " & name & ".nim") == 0
execCmd(compCommand & " --verbosity:0 --hints:off " & params & " " & name & ".nim") == 0
#execCmd(compCommand & " --verbosity:0 --warnings:off --hints:off " & params & " " & name & ".nim") == 0

proc returns(name: string; compParams = ""; params = ""; input = ""): bool =
Expand Down Expand Up @@ -272,8 +272,8 @@ testIt "jsons": check it.returns
testIt "kaprekar": check it.returns
testIt "langtonsant": check it.returns
#testIt "largestint": check it.returns # Actually broken
testIt "lastfriday": check it.returns("", "2013")
testIt "lastsunday": check it.returns("", "2012")
testIt "lastfriday": check it.returns("", "2012")
testIt "lastsunday": check it.returns("", "2013")
testIt "lcm": check it.returns
testIt "lcs2": check it.returns
testIt "lcs": check it.returns
Expand Down

0 comments on commit 948431f

Please sign in to comment.