Permalink
Browse files

move some op + tests to the appropiate place

  • Loading branch information...
1 parent 28ed852 commit 53aab0cc66d2143d61ecaecf4739b6ebaf586d69 @NotFound committed Jun 12, 2012
Showing with 4 additions and 9 deletions.
  1. +4 −1 t/base/02opadd.t
  2. +0 −8 t/base/features.t
View
@@ -7,20 +7,23 @@ using extern Test.More plan, ok, nok, is, isnt;
function main [main] (var args)
{
- plan(9);
+ plan(12);
is(1 + 1, 2, "add int constants");
int i1 = 1;
int i2 = 2;
+ is(i1 + 6, 7, "add int const");
is(i1 + i2, 3, "add int");
string s1 = "He";
string s2 = "llo";
is(s1 + s2, "Hello", "add string");
is(s1 + i2, "He2", "add string int");
float f1 = 1.3;
float f2 = 2.4;
+ is(f1 + 0.2, 1.5, "add float const");
is(f1 + f2, 3.7, "add float");
is(i1 + f2, 3.4, "add int float");
+ is(f1 + i2, 3.3, "add float int");
var o1 = 1;
is(o1 + i2, 3, "add var int");
var o2 = 2;
View
@@ -316,14 +316,6 @@ function main [main] (args)
i = --vi1;
is(i, 42, "var predecrement with assignment");
- is(i + 2, 44, "int + int");
- is(i + vi1, 84, "int + var");
- is(vi1 + i, 84, "var + int");
-
- is(n + 0.1, 2.6, "float + float");
- is(n + i, 44.5, "float + int");
- is(i + n, 44.5, "int + float");
-
is(str + i, "2.542", "string + int");
is(i + str, "422.5", "int + string");
is(str + vi1, "2.542", "string + var");

0 comments on commit 53aab0c

Please sign in to comment.