@@ -54,24 +54,28 @@ class TupleShowTests extends DottyTest:
54
54
55
55
@ Test def tup3_show10 = chkEq(" (Int,\n Long,\n Short)" .normEOL, tup3.toText(ctx.printer).mkString(10 , false ))
56
56
57
- val res21 = """ |(Int, Int, Int, Int, Int, Long, Long, Long, Long, Long, Int, Int, Int, Int,
58
- | Int, Long, Long, Long, Long, Long, Int)""" .stripMargin.normEOL
57
+ val res21 : String =
58
+ """ |(Int, Int, Int, Int, Int, Long, Long, Long, Long, Long, Int, Int, Int, Int,
59
+ | Int, Long, Long, Long, Long, Long, Int)""" .stripMargin.normEOL
59
60
60
- val res22 = """ |(Int, Int, Int, Int, Int, Long, Long, Long, Long, Long, Int, Int, Int, Int,
61
- | Int, Long, Long, Long, Long, Long, Int, Long)""" .stripMargin.normEOL
61
+ val res22 : String =
62
+ """ |(Int, Int, Int, Int, Int, Long, Long, Long, Long, Long, Int, Int, Int, Int,
63
+ | Int, Long, Long, Long, Long, Long, Int, Long)""" .stripMargin.normEOL
62
64
63
- val res23 = """ |(Int, Int, Int, Int, Int, Long, Long, Long, Long, Long, Int, Int, Int, Int,
64
- | Int, Long, Long, Long, Long, Long, Int, Long, Short)""" .stripMargin.normEOL
65
+ val res23 : String =
66
+ """ |(Int, Int, Int, Int, Int, Long, Long, Long, Long, Long, Int, Int, Int, Int,
67
+ | Int, Long, Long, Long, Long, Long, Int, Long, Short)""" .stripMargin.normEOL
65
68
66
- val res24 = """ |(Int, Int, Int, Int, Int, Long, Long, Long, Long, Long, Int, Int, Int, Int,
67
- | Int, Long, Long, Long, Long, Long, Int, Long, Short, Short)""" .stripMargin.normEOL
69
+ val res24 : String =
70
+ """ |(Int, Int, Int, Int, Int, Long, Long, Long, Long, Long, Int, Int, Int, Int,
71
+ | Int, Long, Long, Long, Long, Long, Int, Long, Short, Short)""" .stripMargin.normEOL
68
72
69
73
def chkEq [A ](expected : A , obtained : A ) = assert(expected == obtained, diff(s " $expected" , s " $obtained" ))
70
74
71
75
/** On Windows the string literal in this test source file will be read with `\n` (b/c of "-encoding UTF8")
72
76
* but the compiler will correctly emit \r\n as the line separator.
73
77
* So we align the expected result to faithfully compare test results. */
74
- extension (str : String ) def normEOL = if EOL == " \n " then str else str.replace(" \n " , EOL )
78
+ extension (str : String ) def normEOL : String = if EOL == " \n " then str else str.replace(" \n " , EOL )
75
79
76
80
def diff (exp : String , obt : String ) =
77
81
val min = math.min(exp.length, obt.length)
0 commit comments