~ubuntu-branches/ubuntu/utopic/blitz++/utopic

« back to all changes in this revision

Viewing changes to testsuite/contiguous.cpp

  • Committer: Package Import Robot
  • Author(s): Christophe Trophime
  • Date: 2012-07-06 09:15:30 UTC
  • mfrom: (11.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20120706091530-vzrb8zf0vpbf8tp9
Tags: 1:0.10-1
* New upstream release
  Closes: #679407
* debian/rules:
  - update for new release
  - add override_dh_auto_test target
  - regenerate configure and Makefile.am
* debian/control:
  - add libtool, automake to BuildDepends
* debian/libblitz-doc.install
  - modify path for html files
* remove uneeded patches
* add examples.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
int main()
7
7
{
8
8
  {
9
 
    Array<int, 2> A(7,11);
 
9
    Array<int, 2> A(7,11, contiguousArray);
10
10
    BZTEST(A.isStorageContiguous());
11
11
 
12
12
    BZTEST(!(A(Range(fromStart, toEnd, 2), 
18
18
  }
19
19
 
20
20
  {
21
 
    Array<int, 2> A(7,11,fortranArray);
 
21
    Array<int, 2> A(7,11, ColumnMajorArray<2>(contiguousData));
22
22
    BZTEST(A.isStorageContiguous());
23
23
 
24
24
    BZTEST(!(A(Range(fromStart, toEnd, 2), 
30
30
  }
31
31
 
32
32
  {
33
 
    Array<int, 2> A(Range(-4,8),Range(4,27));
 
33
    Array<int, 2> A(Range(-4,8),Range(4,27), contiguousArray);
34
34
    BZTEST(A.isStorageContiguous());
35
35
 
36
36
    BZTEST(!(A(Range(fromStart, toEnd, 2),