Skip to content

Instantly share code, notes, and snippets.

@wsoczynski
Created March 21, 2012 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wsoczynski/2146039 to your computer and use it in GitHub Desktop.
Save wsoczynski/2146039 to your computer and use it in GitHub Desktop.
Wiedz, że coś się dzieje 1
class Bar(var i: Int) {
}
class TestSubject1 {
def doFoo(bar: Bar){
bar.i = 10
}
}
def testCase1() {
val bar = new Bar(0)
val testedObject = new TestSubject1
testedObject.doFoo(bar)
if(bar.i == 10){
println("true")
} else {
println("false")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment