haikuwebkit/LayoutTests/js/dom/bitwise-and-on-undefined-ex...

14 lines
382 B
Plaintext

This tests the bitwise operators work correctly in conjunction with undefined and null.
SUCCESS: 0 & null = 0
SUCCESS: 0 & undefined = 0
SUCCESS: 1 & null = 0
SUCCESS: 1 & undefined = 0
SUCCESS: 0 | null = 0
SUCCESS: 0 | undefined = 0
SUCCESS: 1 | null = 1
SUCCESS: 1 | undefined = 1
SUCCESS: 0 ^ null = 0
SUCCESS: 0 ^ undefined = 0
SUCCESS: 1 ^ null = 1
SUCCESS: 1 ^ undefined = 1