17 lines
539 B
Ruby
17 lines
539 B
Ruby
|
true && true # true
|
||
|
false && true # false
|
||
|
1 == 1 && 2 == 1 # false # true
|
||
|
1 == 1 || 2 != 1 # true
|
||
|
true && 1 == 1 # true
|
||
|
false && 0 != 0 # false
|
||
|
true || 1 == 1 # true # false
|
||
|
1 != 0 && 2 == 1 # true # true # false
|
||
|
(true && false) # true
|
||
|
(1 == 1 && 0 != 1) # false
|
||
|
(10 == 1 || 1000 == 1000) # false
|
||
|
(1 != 10 || 3 == 4) # false
|
||
|
("testing" == "testing" && "Zed" == "Cool Guy") # true
|
||
|
1 == 1 && !("testing" == 1 || 1 == 0) # true
|
||
|
"chunky" == "bacon" && !(3 == 4 || 3 == 3) # false
|
||
|
3 == 3 && !("testing" == "testing" || "Ruby" == "Fun") # false
|