Style patches
This commit is contained in:
parent
c9279ab0e7
commit
b9ba05be81
23 changed files with 90 additions and 90 deletions
|
|
@ -10,16 +10,16 @@ setmetatable(env, {__index=function (t,i) error("undefined global variable `"..i
|
|||
|
||||
foo = spn.Foo()
|
||||
foo.x = 7
|
||||
assert( foo:getx() == 7 )
|
||||
assert(foo:getx() == 7)
|
||||
|
||||
bar = spn.Bar(foo)
|
||||
success = pcall(bar.getx, bar) -- Bar is not a smart pointer. Call should fail
|
||||
assert( not success )
|
||||
assert(not success)
|
||||
|
||||
spam = spn.Spam(foo)
|
||||
success = pcall(spam.getx, spam) -- Spam is not a smart pointer. Call should fail
|
||||
assert( not success )
|
||||
assert(not success)
|
||||
|
||||
grok = spn.Grok(foo)
|
||||
success = pcall(grok.getx, grok) -- Spam is not a smart pointer. Call should fail
|
||||
assert( not success )
|
||||
assert(not success)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue