Skip to content

Commit a168963

Browse files
committed
Add more operator tests
1 parent 2887505 commit a168963

21 files changed

Lines changed: 63 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function test() {
2+
return (true?1:0)==1;
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function test() {
2+
return (false?1:0)==0;
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function test() {
2+
return ([1,0,0]**[0,1,0])==[0,0,1];
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function test() {
2+
return ([1,0]**[0,1])==1;
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function test() {
2+
return [1,2,3]*[4,5,6]==(1*4+2*5+3*6);
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function test() {
2+
return [1,2]*[4,5]==(1*4+2*5);
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function test() {
2+
return [1,2,3]*2==[2,4,6];
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function test() {
2+
return 2*[1,2,3]==[2,4,6];
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function test() {
2+
return [1,2]+[3,4,5]==[4,6,5];
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function test() {
2+
return 1+2*3==7;
3+
}

0 commit comments

Comments
 (0)