sreich
04/08/2017, 3:11 PMDalinar
04/09/2017, 3:56 AMif (x != null) {
(yellow) (and then the following lines are fully covered (green) inside the if
block) - does that mean that x
was never null
?fellshard
04/10/2017, 12:42 AMorangy
04/10/2017, 2:37 PMpavlospt
04/10/2017, 3:01 PMmg6maciej
04/10/2017, 6:10 PMhttps://i.redd.it/yh8nv9m7l6qy.jpg▾
sksk
04/12/2017, 1:21 PMsksk
04/12/2017, 3:21 PMgroostav
04/13/2017, 3:52 AM@Given("^We want to execute a constraint graph 10000 times$")
fun `We want to execute a constraint graph 10000 times`(){
TODO()
}
the desire to write my own test driver is real. Wouldnt it be nice if I could just tag the method with @Given
and simply embed regex in the method namesksk
04/13/2017, 3:18 PMd.medina
04/14/2017, 2:26 PMdeviant
04/15/2017, 2:12 PMorangy
04/16/2017, 2:29 PMorangy
04/16/2017, 4:02 PMsreich
04/16/2017, 9:44 PMdeviant
04/18/2017, 7:32 PMhttps://habrastorage.org/files/7d4/244/a01/7d4244a0150d41d1adb706a13a3f8083.jpg▾
mg6maciej
04/18/2017, 7:35 PMsreich
04/18/2017, 8:06 PMmg6maciej
04/19/2017, 8:11 PMval x: Any = Unit
if (x is Int && x is String) {
x.length + x
}
cedric
04/20/2017, 12:53 AMmg6maciej
04/20/2017, 10:10 AMif (not isEmpty())
if (!isEmpty())
if (isNotEmpty())
if (isEmpty().not())
mwerschy
04/20/2017, 2:08 PMsealed class Expression
data class Const(val value: Int) : Expression()
data class Add(val left: Expression, val right: Expression) : Expression()
data class Neg(val expr: Expression) : Expression()
fun eval(expr: Expression): Int = when (expr) {
is Const -> expr.value
is Add -> eval(expr.left) + eval(expr.right)
is Neg -> -eval(expr.expr)
}
fun main(args: Array<String>) {
println(eval(Add(Const(1), Neg(Const(2)))))
}
mwerschy
04/20/2017, 2:10 PMmg6maciej
04/20/2017, 2:12 PMAdd(left, Const(0))
to simplify it to left
?mwerschy
04/20/2017, 2:23 PMorangy
04/20/2017, 10:24 PMtrevjones
04/21/2017, 5:43 PMevanchooly
04/24/2017, 2:37 PMsnrostov
04/24/2017, 9:47 PMgroostav
04/25/2017, 6:31 PMprocess.start()
call from when I run the target under intelliJ, and under an IntelliJ ant target than when I run it from install4j. This is on windows 7. Interestingly the behavior difference disappears on our (newer) windows 10 machines. Anybody here got some thoughts about what the difference might be?groostav
04/25/2017, 6:31 PMprocess.start()
call from when I run the target under intelliJ, and under an IntelliJ ant target than when I run it from install4j. This is on windows 7. Interestingly the behavior difference disappears on our (newer) windows 10 machines. Anybody here got some thoughts about what the difference might be?javaw
vs java
. Windows apparently has some concept of a console window, where processes can either have a console window or they can not have a console window (even if they spawn several later in their life cycles). Abaqus, being an ancient piece of software, was not willing to tolerate being `Process.start()`'d by a young-upstart-non-console'd process, which is what our software is. There must be come old API on the windows process object. Infuriating.dalexander
04/26/2017, 6:32 PMgroostav
04/26/2017, 6:46 PMif(WIN_7) doA() else if (WIN_10) doB()
, I'll never knowdalexander
04/26/2017, 6:51 PM