Skip to content

Commit

Permalink
cosmetic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriktsarpalis committed Jun 29, 2016
1 parent 927b278 commit 7d1debe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Argu.Tests/Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,7 @@ module ``Argu Tests`` =
[<Fact>]
let ``Use no prefix as default`` () =
let parser = ArgumentParser.Create<ArgumentNoDash>("usage string")
let args =
[| "argument" ; "bar" ; "levels-deep" ; "3" |]
let args = [| "argument" ; "bar" ; "levels-deep" ; "3" |]

let expected_outcome = set [ Argument "bar" ; Levels_Deep 3 ]
let results = parser.ParseCommandLine args
Expand Down Expand Up @@ -466,7 +465,7 @@ module ``Argu Tests`` =

[<Fact>]
let ``Fail on malformed case constructors`` () =
let result = parser.ToParseResult([])
let result = parser.ToParseResult []
raises<ArgumentException> <@ result.Contains <@ fun (y : string) -> Log_Level 42 @> @>
raises<ArgumentException> <@ result.Contains <@ fun (y, x) -> Data(x,y) @> @>
raises<ArgumentException> <@ result.Contains <@ fun x -> () ; Log_Level x @> @>
Expand Down

0 comments on commit 7d1debe

Please sign in to comment.