-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fsdk,Fsdk.Tests: add new ArgsParsing failing test
- Loading branch information
Showing
4 changed files
with
25 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace Fsdk.Tests | ||
|
||
open NUnit.Framework | ||
|
||
open Fsdk | ||
|
||
[<TestFixture>] | ||
type ArgsParsing() = | ||
|
||
[<Test>] | ||
member __.``simplest flags usage``() = | ||
let commandLine = "someProgram --someLongFlag1 -f2".Split(' ') | ||
let res:Misc.ArgsParsed = Misc.ParseArgs commandLine | ||
match res with | ||
| Misc.ArgsParsed.OnlyFlags flags -> Assert.That(Seq.length flags, Is.EqualTo 2) | ||
| _ -> Assert.Fail "res was not ArgsParsing.OnlyFlags subtype" |
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