[Nice-commit] Nice/testsuite/compiler/expressions/operators null.testsuite,1.4,1.5
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-04-02 16:44:53
|
Update of /cvsroot/nice/Nice/testsuite/compiler/expressions/operators
In directory sc8-pr-cvs1:/tmp/cvs-serv18474/testsuite/compiler/expressions/operators
Modified Files:
null.testsuite
Log Message:
A simpler fix for OptionOr, when the first argument has an optional primitive
type.
Index: null.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/expressions/operators/null.testsuite,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** null.testsuite 29 Mar 2003 20:18:52 -0000 1.4
--- null.testsuite 2 Apr 2003 16:44:49 -0000 1.5
***************
*** 32,36 ****
}
! /// PASS bug
Map<String,int> map = new HashMap();
String s = "abc";
--- 32,41 ----
}
! /// PASS
! ?int i = 1;
! int j = i || 0;
! assert j == 1;
!
! /// PASS
Map<String,int> map = new HashMap();
String s = "abc";
***************
*** 38,39 ****
--- 43,47 ----
int i = map.get(s) || 0;
assert(i==1);
+
+ /// PASS
+ int[] i = [1,2] || [3,4];
|