source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/test_sameobject.m
Last change on this file was 37, checked in by , 15 years ago | |
---|---|
File size: 263 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | function test_sameobject |
2 | % Result should be 1 in both cases below. | |
3 | ||
4 | a = rand(4); | |
5 | b = a; | |
6 | if sameobject(a,b) ~= 1 | |
7 | error('failed'); | |
8 | end | |
9 | if helper(a,a) ~= 1 | |
10 | error('failed'); | |
11 | end | |
12 | disp('Test passed.') | |
13 | ||
14 | function x = helper(a,b) | |
15 | ||
16 | x = sameobject(a,b); |
Note: See TracBrowser
for help on using the repository browser.