Skip to content
Snippets Groups Projects
Commit 5aeef7f4 authored by Lennart Eichhorn's avatar Lennart Eichhorn
Browse files

Added tests for operators and more.

parent 68028d6f
No related branches found
No related tags found
No related merge requests found
// TODO Maybe we should not fail here , it could makes some things easier
1337++;
++1337;
1337--;
--1337;
1337=bar;
1337+=bar;
1337-=bar;
1337*=bar;
1337/=bar;
1337%=bar;
\ No newline at end of file
();
\ No newline at end of file
// TODO split into multiple files, as this does not make sense
// Even if only one line fails, this test is marked as a success
foo+;
foo-;
foo*;
*bar;
foo/;
/foo;
foo%;
$foo;
foo++bar;
foo--bar;
foo==;
foo===;
foo!=;
foo>;
foo<;
foo>=;
foo<=;
==bar;
===bar;
!=bar;
>bar;
<bar;
>=bar;
<=bar;
&&bar;
||bar;
foo&&;
foo||;
bar!foo;
foo=;
foo+=;
foo-=;
foo*=;
foo/=;
foo%=;
=bar;
+=bar;
-=bar;
*=bar;
/=bar;
%=bar;
foo?bar;
bar:fum;
?bar;
foo?;
bar:;
:fum;
\ No newline at end of file
foo+bar;
foo-bar;
foo*bar;
foo/bar;
foo%bar;
foo++;
foo--;
++foo;
--foo;
\ No newline at end of file
foo=bar;
foo+=bar;
foo-=bar;
foo*=bar;
foo/=bar;
foo%=bar;
\ No newline at end of file
foo==bar;
foo===bar;
foo!=bar;
foo>bar;
foo<bar;
foo>=bar;
foo<=bar;
\ No newline at end of file
foo&&bar;
foo||bar;
!foo;
\ No newline at end of file
(foo);
( foo + bar );
(foo+bar);
(foo+(bar));
((foo)+(bar));
\ No newline at end of file
"foo";
'bar';
\ No newline at end of file
foo?bar:fum;
\ No newline at end of file
var foo = 1;
var foo = 13.37;
var foo = "bar";
var foo = bar;
var foo = true;
var foo = null;
var foo = undefined;
var foo = [ 1, 2, 3 ];
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment