These used to be cases where our algorithm was unusably slow. Thanks to foxxx0 for the report!
14 lines
315 B
Plaintext
14 lines
315 B
Plaintext
import "datetime"
|
|
import "math"
|
|
|
|
class foo($bar) {
|
|
$now = datetime.now()
|
|
print "/tmp/some-module-${bar}" {
|
|
msg => if datetime.weekday($now) == "friday" { "TGIF YAY!" } else { "meh..." },
|
|
}
|
|
$x = math.mod($now, 2)
|
|
print "/tmp/some-module-${bar}-flipflop" {
|
|
msg => if $x == 0 { "FLIP" } else { "FLOP" },
|
|
}
|
|
}
|