Skip to content

Commit

Permalink
Issue #6 #67 Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeandersson committed Jun 2, 2016
1 parent 7232c0d commit a8b005e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 0 additions & 2 deletions Examples/test-suite/matlab/class_scope_weird_runme.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import class_scope_weird.*

f = class_scope_weird.Foo();
g = class_scope_weird.Foo(3);
if (f.bar(3) ~= 3)
Expand Down
11 changes: 4 additions & 7 deletions Examples/test-suite/matlab/compactdefaultargs_runme.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import compactdefaultargs.*

defaults1 = Defaults1(1000);
defaults1 = Defaults1();
defaults1 = compactdefaultargs.Defaults1(1000);
defaults1 = compactdefaultargs.Defaults1();

if (defaults1.ret(10.0) ~= 10.0)
error('FAILED!!')
Expand All @@ -11,8 +9,8 @@
error('FAILED!!')
end

defaults2 = Defaults2(1000);
defaults2 = Defaults2();
defaults2 = compactdefaultargs.Defaults2(1000);
defaults2 = compactdefaultargs.Defaults2();

if (defaults2.ret(10.0) ~= 10.0)
error('FAILED!!')
Expand All @@ -21,4 +19,3 @@
if (defaults2.ret() ~= -1.0)
error('FAILED!!')
end

6 changes: 1 addition & 5 deletions Examples/test-suite/matlab/constover_runme.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import constover.*

p = constover.test('test');
if (~strcmp(p,'test'))
error('test failed~')
Expand All @@ -9,7 +7,7 @@
if (~strcmp(p,'test_pconst'))
error('test_pconst failed~')
end

f = constover.Foo();
p = f.test('test');
if (~strcmp(p,'test'))
Expand All @@ -30,5 +28,3 @@
if (~strcmp(p,'test_pconstmethod'))
error('member-test_pconstm failed~')
end


0 comments on commit a8b005e

Please sign in to comment.