Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
improve diagnostics
  • Loading branch information
dsyme committed Feb 28, 2019
commit da9f58c7d591c07689e9f30912816a4c8da362c3
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ let filePairsToCheck =
|> Seq.map (fun f -> f, f.Replace("dummy","dummy2"))

let compareFiles pair =
let correct = areSame pair = shouldBeSame
if not correct then
let correct = (areSame pair = shouldBeSame)
if correct then
printfn "Good, %s and %s were %s" (fst pair) (snd pair) (if shouldBeSame then "same" else "different")
else
printfn "Expected %s and %s to be %s" (fst pair) (snd pair) (if shouldBeSame then "same" else "different")
correct

Expand Down
4 changes: 3 additions & 1 deletion tests/fsharpqa/Source/run.pl
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@ sub RunCompilerCommand {
@CommandOutput = <$remote>;

print "--------------------------------------------------------\n";
print "Error from hosted compiler\n";
print "Results from hosted compiler\n";
print "msg: $msg\n";
print "cmd: $cmd\n";
print "Exit code: $ExitCode\n";
print "Error: $Type\n";
print @CommandOutput;
Expand Down