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
Update tests
  • Loading branch information
cartermp committed Jul 10, 2019
commit 77f223610b35decde8196334a9fe0806d6fec5f6
4 changes: 2 additions & 2 deletions tests/fsharp/core/anon/lib.fs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ module KindB1 =
check "coijoiwcnkwle1" {| a = 1 |} {| a = 1 |}
check "coijoiwcnkwle2" {| a = 2 |} {| a = 2 |}

check "coijoiwcnkwle3" (sprintf "%A" {| X = 10 |}) "{X = 10;}"
check "coijoiwcnkwle4" (sprintf "%A" {| X = 10; Y = 1 |} |> fun s -> s.Replace("\n","").Replace("\r","")) ("{X = 10; Y = 1;}".Replace("\n","").Replace("\r",""))
check "coijoiwcnkwle3" (sprintf "%A" {| X = 10 |}) "{ X = 10 }"
check "coijoiwcnkwle4" (sprintf "%A" {| X = 10; Y = 1 |} |> fun s -> s.Replace("\n","").Replace("\r","")) ("{ X = 10 Y = 1}".Replace("\n","").Replace("\r",""))
check "clekoiew09" (f2 {| X = {| X = 10 |} |}) 10
check "cewkew0oijew" (f2 {| X = {| X = 20 |} |}) 20

Expand Down
2 changes: 1 addition & 1 deletion tests/fsharp/core/anon/test.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module CrossAssemblyTest =
check "vrknvio1" (SampleAPI.SampleFunction {| A=1; B = "abc" |}) 4 // note, this is creating an instance of an anonymous record from another assembly.
check "vrknvio2" (SampleAPI.SampleFunctionAcceptingList [ {| A=1; B = "abc" |}; {| A=2; B = "def" |} ]) [4; 5] // note, this is creating an instance of an anonymous record from another assembly.
check "vrknvio3" (let d = SampleAPI.SampleFunctionReturningAnonRecd() in d.A + d.B.Length) 4
check "vrknvio4" (let d = SampleAPIStruct.SampleFunctionReturningAnonRecd() in d.ToString().Replace("\n","").Replace("\r","")) """{A = 1; B = "abc";}"""
check "vrknvio4" (let d = SampleAPIStruct.SampleFunctionReturningAnonRecd() in d.ToString().Replace("\n","").Replace("\r","")) """{ A = 1 B = "abc" }"""
tests()

module CrossAssemblyTestStruct =
Expand Down
214 changes: 107 additions & 107 deletions tests/fsharp/core/printing/z.output.test.1000.stdout.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ type T =
end
val f_as_method : x:int -> int
val f_as_thunk : (int -> int)
val refCell : string ref = {contents = "value";}
val refCell : string ref = { contents = "value" }
module D1 = begin
val words : System.Collections.Generic.IDictionary<string,int>
val words2000 : System.Collections.Generic.IDictionary<int,string>
Expand Down Expand Up @@ -1243,111 +1243,111 @@ type 'a T1Pre with
f7: int
f8: int
f9: int }
val r10 : r = {f0 = 0;
f1 = 1;
f2 = 2;
f3 = 3;
f4 = 4;
f5 = 5;
f6 = 6;
f7 = 7;
f8 = 8;
f9 = 9;}
val r10 : r = { f0 = 0
f1 = 1
f2 = 2
f3 = 3
f4 = 4
f5 = 5
f6 = 6
f7 = 7
f8 = 8
f9 = 9 }
val r10s : r [] =
[|{f0 = 0;
f1 = 1;
f2 = 2;
f3 = 3;
f4 = 4;
f5 = 5;
f6 = 6;
f7 = 7;
f8 = 8;
f9 = 9;}; {f0 = 0;
f1 = 1;
f2 = 2;
f3 = 3;
f4 = 4;
f5 = 5;
f6 = 6;
f7 = 7;
f8 = 8;
f9 = 9;}; {f0 = 0;
f1 = 1;
f2 = 2;
f3 = 3;
f4 = 4;
f5 = 5;
f6 = 6;
f7 = 7;
f8 = 8;
f9 = 9;}; {f0 = 0;
f1 = 1;
f2 = 2;
f3 = 3;
f4 = 4;
f5 = 5;
f6 = 6;
f7 = 7;
f8 = 8;
f9 = 9;}; {f0 = 0;
f1 = 1;
f2 = 2;
f3 = 3;
f4 = 4;
f5 = 5;
f6 = 6;
f7 = 7;
f8 = 8;
f9 = 9;}; ...|]
[|{ f0 = 0
f1 =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
f1 = 1
f2 = 2
f3 = 3
f4 = 4
f5 = 5
f6 = 6
f7 = 7
f8 = 8
f9 = 9 }; { f0 = 0
f1 = 1
f2 = 2
f3 = 3
f4 = 4
f5 = 5
f6 = 6
f7 = 7
f8 = 8
f9 = ... }; ...|])

> val x1564_A1 : int = 1

Expand Down Expand Up @@ -1806,9 +1806,9 @@ module Regression1019_long = begin
val single_infinity : float32 = infinityf
end

> val it : int ref = {contents = 1;}
> val it : int ref = { contents = 1 }

> val x : int ref = {contents = 1;}
> val x : int ref = { contents = 1 }
val f : (unit -> int)

> val it : int = 1
Expand Down Expand Up @@ -2733,10 +2733,10 @@ val namedEx2 : exn = MyNamedException7 25

> type optionRecord =
{ x: int option }
val x : optionRecord = {x = None;}
val x : optionRecord = { x = None }

> type optionRecord =
{ x: obj }
val x : optionRecord = {x = null;}
val x : optionRecord = { x = null }

> > >
70 changes: 35 additions & 35 deletions tests/fsharp/core/printing/z.output.test.200.stdout.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ type T =
end
val f_as_method : x:int -> int
val f_as_thunk : (int -> int)
val refCell : string ref = {contents = "value";}
val refCell : string ref = { contents = "value" }
module D1 = begin
val words : System.Collections.Generic.IDictionary<string,int>
val words2000 : System.Collections.Generic.IDictionary<int,string>
Expand Down Expand Up @@ -567,36 +567,36 @@ type 'a T1Pre with
f7: int
f8: int
f9: int }
val r10 : r = {f0 = 0;
f1 = 1;
f2 = 2;
f3 = 3;
f4 = 4;
f5 = 5;
f6 = 6;
f7 = 7;
f8 = 8;
f9 = 9;}
val r10s : r [] = [|{f0 = 0;
f1 = 1;
f2 = 2;
f3 = 3;
f4 = 4;
f5 = 5;
f6 = 6;
f7 = 7;
f8 = 8;
f9 = 9;}; ...|]
val r10s' : string * r [] = ("one extra node", [|{f0 = 0;
f1 = 1;
f2 = 2;
f3 = 3;
f4 = 4;
f5 = 5;
f6 = 6;
f7 = 7;
f8 = 8;
f9 = ...;}; ...|])
val r10 : r = { f0 = 0
f1 = 1
f2 = 2
f3 = 3
f4 = 4
f5 = 5
f6 = 6
f7 = 7
f8 = 8
f9 = 9 }
val r10s : r [] = [|{ f0 = 0
f1 = 1
f2 = 2
f3 = 3
f4 = 4
f5 = 5
f6 = 6
f7 = 7
f8 = 8
f9 = 9 }; ...|]
val r10s' : string * r [] = ("one extra node", [|{ f0 = 0
f1 = 1
f2 = 2
f3 = 3
f4 = 4
f5 = 5
f6 = 6
f7 = 7
f8 = 8
f9 = ... }; ...|])

> val x1564_A1 : int = 1

Expand Down Expand Up @@ -1055,9 +1055,9 @@ module Regression1019_long = begin
val single_infinity : float32 = infinityf
end

> val it : int ref = {contents = 1;}
> val it : int ref = { contents = 1 }

> val x : int ref = {contents = 1;}
> val x : int ref = { contents = 1 }
val f : (unit -> int)

> val it : int = 1
Expand Down Expand Up @@ -1982,10 +1982,10 @@ val namedEx2 : exn = MyNamedException7 25

> type optionRecord =
{ x: int option }
val x : optionRecord = {x = None;}
val x : optionRecord = { x = None }

> type optionRecord =
{ x: obj }
val x : optionRecord = {x = null;}
val x : optionRecord = { x = null }

> > >
Loading