Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace CompilerOptions.Fsc

open Xunit
open FSharp.Compiler.CompilerOptions
open FSharp.Test.Compiler

module FscOptionTests =
Expand Down Expand Up @@ -59,12 +60,17 @@ module FscOptionTests =
[<InlineData("--consolecolors-")>]
[<Theory>]
let ``fsc --consolecolors switch`` option =
Fs """printfn "Hello, World" """
|> asExe
|> withOptions [option]
|> compile
|> shouldSucceed
|> ignore
let saved = enableConsoleColoring

try
Fs """printfn "Hello, World" """
|> asExe
|> withOptions [option]
|> compile
|> shouldSucceed
|> ignore
finally
enableConsoleColoring <- saved

// --preferreduilang

Expand Down
Loading