~ubuntu-branches/ubuntu/wily/afnix/wily

« back to all changes in this revision

Viewing changes to src/mod/sps/tst/SPS0003.als

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2011-03-16 21:31:18 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110316213118-gk4k3ez3e5d2huna
Tags: 2.0.0-1
* QA upload.
* New upstream release
* Debian source format is 3.0 (quilt)
* Fix debhelper-but-no-misc-depends
* Fix ancient-standards-version
* Fix package-contains-linda-override
* debhelper compatibility is 7
* Fix dh-clean-k-is-deprecated

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
# - the copyright holder be liable for any  direct, indirect, incidental or -
12
12
# - special damages arising in any way out of the use of this software.     -
13
13
# ---------------------------------------------------------------------------
14
 
# - copyright (c) 1999-2007 amaury darsch                                   -
 
14
# - copyright (c) 1999-2011 amaury darsch                                   -
15
15
# ---------------------------------------------------------------------------
16
16
 
17
17
# @info   sheet test unit
89
89
# add data to the sheet
90
90
sht:add-data   "hello" "world"
91
91
assert 1       (sht:length)
 
92
assert true    (sht:row-p 0 "hello")
 
93
assert 0       (sht:find-row 0   "hello")
 
94
assert 0       (sht:lookup-row 1 "world")
92
95
sht:add-data   2000 3000
93
96
assert 2       (sht:length)
 
97
assert 1       (sht:find-row   0 2000)
 
98
assert 1       (sht:lookup-row 1 3000)
94
99
 
95
100
# check for row, column access
96
101
trans  cell    (sht:get 0 0)