Skip to content

Commit

Permalink
meta example tests for vector and matrix types
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Jun 21, 2016
1 parent 5850ba3 commit 4726424
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
31 changes: 31 additions & 0 deletions examples/meta/src/tests/matrix_types.sg
@@ -0,0 +1,31 @@
BoolMatrix bool_matrix(2,1)
bool_matrix[0,0]=false
bool_matrix[1,0]=true

ByteMatrix byte_matrix(2,1)
byte_matrix[0,0]=0
byte_matrix[1,0]=1

WordMatrix word_matrix(2,1)
word_matrix[0,0]=0
word_matrix[1,0]=1

IntMatrix int_matrix(2,1)
int_matrix[0,0]=0
int_matrix[1,0]=1

LongIntMatrix long_int_matrix(2,1)
long_int_matrix[0,0]=0
long_int_matrix[1,0]=1

ShortRealMatrix short_real_matrix(2,1)
short_real_matrix[0,0]=0.1
short_real_matrix[1,0]=1.1

RealMatrix real_matrix(2,1)
real_matrix[0,0]=0.1
real_matrix[1,0]=0.1

LongRealMatrix long_real_matrix(2,1)
long_real_matrix[0,0]=0.1
long_real_matrix[1,0]=0.1
31 changes: 31 additions & 0 deletions examples/meta/src/tests/vector_types.sg
@@ -0,0 +1,31 @@
BoolVector bool_vector(2)
bool_vector[0]=false
bool_vector[1]=true

ByteVector byte_vector(2)
byte_vector[0]=0
byte_vector[1]=1

WordVector word_vector(2)
word_vector[0]=0
word_vector[1]=1

IntVector int_vector(2)
int_vector[0]=0
int_vector[1]=1

LongIntVector long_int_vector(2)
long_int_vector[0]=0
long_int_vector[1]=1

ShortRealVector short_real_vector(2)
short_real_vector[0]=0.1
short_real_vector[1]=1.1

RealVector real_vector(2)
real_vector[0]=0.1
real_vector[1]=0.1

LongRealVector long_real_vector(2)
long_real_vector[0]=0.1
long_real_vector[1]=0.1

0 comments on commit 4726424

Please sign in to comment.