~ubuntu-branches/ubuntu/trusty/octave-struct/trusty-proposed

« back to all changes in this revision

Viewing changes to inst/test_struct.m

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2009-05-24 23:15:06 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090524231506-tha3rf9jfuj1wr30
Tags: 1.0.7-1
* New upstream release
* debian/control:
  + (Standards-Version): Bump to 3.8.1 (no changes needed)
  + (Depends): Add ${misc:Depends}
  + (Vcs-Git, Vcs-Browser): Adjust to new Git repository
* debian/source.lintian-overrides: Add file for overriding Lintian
  warnings build-depends-without-arch-dep
* debian/copyright:
  + Use DEP5 URL in Format-Specification
  + Use separate License stanzas for instructing about the location of
    the different licenses used in the package

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
##
25
25
 
26
26
## Author:        Etienne Grossmann <etienne@cs.uky.edu>
27
 
## $Id: test_struct.m 2789 2006-10-08 02:45:43Z etienne $
 
27
## $Id: test_struct.m 5489 2008-12-11 16:50:49Z thomas-weber $
28
28
 
29
29
1 ;
30
30
global test_struct_errors  ;
82
82
t = rmfield( t, "foo");
83
83
t = rmfield( t, "bye");
84
84
t = rmfield( t, "hello");
85
 
mytest( ! struct_contains(t,"foo")    , "rmfield 1" ) ;
86
 
mytest( ! struct_contains(t,"bye")    , "rmfield 2" ) ;
87
 
mytest( ! struct_contains(t,"hello")  , "rmfield 3" ) ;
 
85
mytest( ! isfield(t,"foo")    , "rmfield 1" ) ;
 
86
mytest( ! isfield(t,"bye")    , "rmfield 2" ) ;
 
87
mytest( ! isfield(t,"hello")  , "rmfield 3" ) ;
88
88
mytest( t.world ==  s.world           , "rmfield 4" ) ;
89
89
 
90
90