Skip to content

Commit b426f35

Browse files
author
Sara Alemanno
committed
Remove time local and comment time tests
1 parent 729c018 commit b426f35

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

tests/run-macros/f-interpolator-tests.check

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,8 @@ The float value is -Infinity
6565
000
6666
000000000
6767
am
68-
+0200
69-
CEST
7068
399630056
7169
399630056000
72-
août
73-
août
74-
août
75-
mardi
76-
mar.
7770
19
7871
1982
7972
82
@@ -86,7 +79,6 @@ mar.
8679
10:20:56 AM
8780
08/31/82
8881
1982-08-31
89-
mar. août 31 10:20:56 CEST 1982
9082
the percentage is 100 %
9183
we have a line separator now %n and now, we are on the next line
9284
a b b

tests/run-macros/f-interpolator-tests.scala

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,17 @@ object Test {
137137
aTest(Float.NegativeInfinity)
138138
}
139139

140+
/**
141+
* Note that dates may appear in English or in any other language. This means that they
142+
* depend on the place where the program is run. For that reason, some tests are commented,
143+
* to avoid this dependence.
144+
*/
140145
def dateArgsTests = {
141146
import java.text.SimpleDateFormat
142147
import java.util.Locale
148+
import java.util.TimeZone
143149

144-
val sdf = new SimpleDateFormat("dd-M-yyyy hh:mm:ss", Locale.FRANCE)
150+
val sdf = new SimpleDateFormat("dd-M-yyyy hh:mm:ss")
145151
val dateInString = "31-08-1982 10:20:56"
146152
val date = sdf.parse(dateInString)
147153

@@ -154,15 +160,15 @@ object Test {
154160
println(f"$date%tL")
155161
println(f"$date%tN")
156162
println(f"$date%tp")
157-
println(f"$date%tz")
158-
println(f"$date%tZ")
163+
// println(f"$date%tz")
164+
// println(f"$date%tZ")
159165
println(f"$date%ts")
160166
println(f"$date%tQ")
161-
println(f"$date%tB")
162-
println(f"$date%tb")
163-
println(f"$date%th")
164-
println(f"$date%tA")
165-
println(f"$date%ta")
167+
// println(f"$date%tB")
168+
// println(f"$date%tb")
169+
// println(f"$date%th")
170+
// println(f"$date%tA")
171+
// println(f"$date%ta")
166172
println(f"$date%tC")
167173
println(f"$date%tY")
168174
println(f"$date%ty")
@@ -175,7 +181,7 @@ object Test {
175181
println(f"$date%tr")
176182
println(f"$date%tD")
177183
println(f"$date%tF")
178-
println(f"$date%tc")
184+
// println(f"$date%tc")
179185
}
180186

181187
def specificLiteralsTests = {

0 commit comments

Comments
 (0)